Class WritableStackImpl<T>
java.lang.Object
net.thevpc.common.props.impl.PropertyBase
net.thevpc.common.props.impl.WritablePropertyBase
net.thevpc.common.props.impl.WritableStackImpl<T>
- Type Parameters:
T-
- All Implemented Interfaces:
Iterable<T>, ObservableStack<T>, Property, WritableProperty, WritableStack<T>
TODO must implement correctly the events and the adjusters!!
-
Field Summary
Fields inherited from class WritablePropertyBase
adjusters, vetosFields inherited from class PropertyBase
listeners, parentProperty -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint[]findAllIndexes(Predicate<T> a) intfindFirstIndex(Predicate<T> a) intfindFirstIndex(Predicate<T> a, int from) intfindFirstIndex(Predicate<T> a, int from, int to) get(int index) booleanisEmpty()booleaniterator()peek()peek(int index) pop()voidpopAll()voidreadOnly()remove(int index) intsize()toString()Methods inherited from class WritablePropertyBase
adjusters, vetosMethods inherited from class PropertyBase
createListeners, events, fullPropertyName, parentProperty, propagateEvents, propertyName, propertyType, userObjectsMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Iterable
forEach, spliteratorMethods inherited from interface Property
events, getChildProperty, onChange, onChange, onChangeAndInit, onChangeAndInit, onPropagatedChange, onPropagatedChange, onPropagatedChangeAndInit, onPropagatedChangeAndInit, propertyName, propertyType, userObjects, with, withMethods inherited from interface WritableProperty
adjustersMethods inherited from interface WritableStack
vetos
-
Constructor Details
-
WritableStackImpl
-
-
Method Details
-
popIf
-
push
- Specified by:
pushin interfaceWritableStack<T>
-
pop
- Specified by:
popin interfaceWritableStack<T>
-
popAll
public void popAll()- Specified by:
popAllin interfaceWritableStack<T>
-
readOnly
- Specified by:
readOnlyin interfaceObservableStack<T>- Specified by:
readOnlyin interfaceProperty
-
remove
-
peek
- Specified by:
peekin interfaceObservableStack<T>
-
peek
- Specified by:
peekin interfaceObservableStack<T>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceObservableStack<T>
-
size
public int size()- Specified by:
sizein interfaceObservableStack<T>
-
findAllIndexes
- Specified by:
findAllIndexesin interfaceObservableStack<T>
-
findAll
-
findFirst
-
findFirst
-
findFirst
-
findFirstIndex
- Specified by:
findFirstIndexin interfaceObservableStack<T>
-
findFirstIndex
- Specified by:
findFirstIndexin interfaceObservableStack<T>
-
findFirstIndex
- Specified by:
findFirstIndexin interfaceObservableStack<T>
-
get
-
isWritable
public boolean isWritable()- Specified by:
isWritablein interfaceProperty
-
iterator
-
toString
- Overrides:
toStringin classPropertyBase
-