Class ConstantLifecycled<T>
java.lang.Object
com.sk89q.worldedit.util.lifecycle.ConstantLifecycled<T>
- All Implemented Interfaces:
Lifecycled<T>
A
Lifecycled that never invalidates.-
Nested Class Summary
Nested classes/interfaces inherited from interface com.sk89q.worldedit.util.lifecycle.Lifecycled
Lifecycled.Events<T> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionevents()Get the event manager for this lifecycled object.value()Get the value orOptional.empty().Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.sk89q.worldedit.util.lifecycle.Lifecycled
filter, flatMap, isValid, map, valueOrThrow
-
Constructor Details
-
ConstantLifecycled
-
-
Method Details
-
value
Description copied from interface:LifecycledGet the value orOptional.empty().- Specified by:
valuein interfaceLifecycled<T>- Returns:
- the value
-
events
Description copied from interface:LifecycledGet the event manager for this lifecycled object.- Specified by:
eventsin interfaceLifecycled<T>- Returns:
- the event manager
-