Class ReadOnlyListIndexSelection<T>
java.lang.Object
net.thevpc.common.props.ReadOnlyListIndexSelection<T>
- All Implemented Interfaces:
Iterable<T>, GetValueModel<T>, ObservableList<T>, ObservableListIndexSelection<T>, ObservableValue<T>, Property
- Direct Known Subclasses:
ReadOnlyListIndexSelectionExt
public class ReadOnlyListIndexSelection<T>
extends Object
implements ObservableListIndexSelection<T>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanevents()int[]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) indices()iterator()readOnly()intsize()toList()Methods 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
getChildProperty, isWritable, onChange, onChange, onChangeAndInit, onChangeAndInit, onPropagatedChange, onPropagatedChange, onPropagatedChangeAndInit, onPropagatedChangeAndInit, with, with
-
Field Details
-
base
-
-
Constructor Details
-
ReadOnlyListIndexSelection
-
-
Method Details
-
indices
- Specified by:
indicesin interfaceObservableListIndexSelection<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
-
get
- Specified by:
getin interfaceObservableList<T>
-
size
public int size()- Specified by:
sizein interfaceObservableList<T>
-
findAllIndexes
- Specified by:
findAllIndexesin interfaceObservableList<T>
-
contains
- Specified by:
containsin interfaceObservableList<T>
-
findAll
-
findFirst
-
findFirst
-
findFirst
-
findFirstIndex
- Specified by:
findFirstIndexin interfaceObservableList<T>
-
findFirstIndex
- Specified by:
findFirstIndexin interfaceObservableList<T>
-
findFirstIndex
- Specified by:
findFirstIndexin interfaceObservableList<T>
-
toList
- Specified by:
toListin interfaceObservableList<T>
-
readOnly
- Specified by:
readOnlyin interfaceObservableList<T>- Specified by:
readOnlyin interfaceObservableListIndexSelection<T>- Specified by:
readOnlyin interfaceObservableValue<T>- Specified by:
readOnlyin interfaceProperty
-
iterator
-
propertyName
- Specified by:
propertyNamein interfaceProperty
-
events
-
propertyType
- Specified by:
propertyTypein interfaceProperty
-
userObjects
- Specified by:
userObjectsin interfaceProperty
-