java.lang.Object
de.linusdev.data.container.ListContainerImpl<T>
- All Implemented Interfaces:
ListContainer<T>,OptionalValue<List<T>>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<N> @NotNull ListContainer<N>Creates a newcontainerwith given value.booleanexists()get()The actual value of classOptionalValuerepresented by thisOptionalValue.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.linusdev.data.container.ListContainer
cast, castAndConvert, castAndConvertWithException, processMethods inherited from interface de.linusdev.data.OptionalValue
getAs, isNull
-
Constructor Details
-
ListContainerImpl
-
-
Method Details
-
get
Description copied from interface:OptionalValueThe actual value of classOptionalValuerepresented by thisOptionalValue.- Specified by:
getin interfaceOptionalValue<T>- Returns:
OptionalValueornull
-
exists
public boolean exists()Description copied from interface:OptionalValue- Specified by:
existsin interfaceOptionalValue<T>- Returns:
trueif thisOptionalValueexists in theAbstractDatathisOptionalValueis of.
-
createNew
Description copied from interface:ListContainerCreates a newcontainerwith given value.- Specified by:
createNewin interfaceListContainer<T>- Type Parameters:
N- the new value type.- Parameters:
newValue- the value for the new container- Returns:
- a new
ListContainer.
-