Class ReadOnlyList<T>
java.lang.Object
net.thevpc.common.props.impl.PropertyDelegate
net.thevpc.common.props.impl.ReadOnlyList<T>
- All Implemented Interfaces:
Iterable<T>, GetValueModel<T>, ObservableList<T>, ObservableValue<T>, Property
-
Field Summary
Fields inherited from class PropertyDelegate
base, listeners, parentProperty -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanint[]findAllIndexes(Predicate<T> a) intfindFirstIndex(Predicate<T> a) intfindFirstIndex(Predicate<T> a, int from) intfindFirstIndex(Predicate<T> a, int from, int to) get()convenient method to return the first element or nullget(int index) getBase()booleaniterator()readOnly()intsize()toList()Methods inherited from class PropertyDelegate
events, propertyName, propertyType, userObjectsMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterable
forEach, spliteratorMethods inherited from interface ObservableList
findFirstIndexOf, first, last, streamMethods inherited from interface ObservableValue
bindConvert, bindTarget, doNonNull, getOr, getOrDefault, getRequired, isNotNull, isNull, mapBooleanValue, mapDoubleValue, mapEqualsValue, mapFloatValue, mapIntValue, mapLongValue, mapNotEqualsValue, mapStringValue, mapValue, mapValue, propertyClass, unbind, withValueMethods inherited from interface Property
events, getChildProperty, onChange, onChange, onChangeAndInit, onChangeAndInit, onPropagatedChange, onPropagatedChange, onPropagatedChangeAndInit, onPropagatedChangeAndInit, propertyName, propertyType, userObjects, with, with
-
Constructor Details
-
ReadOnlyList
-
-
Method Details
-
contains
- Specified by:
containsin interfaceObservableList<T>
-
getBase
- Overrides:
getBasein classPropertyDelegate
-
toList
- Specified by:
toListin interfaceObservableList<T>
-
isWritable
public boolean isWritable()- Specified by:
isWritablein interfaceProperty- Overrides:
isWritablein classPropertyDelegate
-
readOnly
- Specified by:
readOnlyin interfaceObservableList<T>- Specified by:
readOnlyin interfaceObservableValue<T>- Specified by:
readOnlyin interfaceProperty
-
findAllIndexes
- Specified by:
findAllIndexesin interfaceObservableList<T>
-
findAll
-
iterator
-
findFirst
-
findFirstIndex
- Specified by:
findFirstIndexin interfaceObservableList<T>
-
get
- Specified by:
getin interfaceObservableList<T>
-
size
public int size()- Specified by:
sizein interfaceObservableList<T>
-
findFirst
-
findFirst
-
findFirstIndex
- Specified by:
findFirstIndexin interfaceObservableList<T>
-
findFirstIndex
- Specified by:
findFirstIndexin interfaceObservableList<T>
-
get
Description copied from interface:ObservableListconvenient method to return the first element or null- Specified by:
getin interfaceGetValueModel<T>- Specified by:
getin interfaceObservableList<T>- Specified by:
getin interfaceObservableValue<T>- Returns:
- the first element or null
-