public class SimpleSet<V> extends AbstractList<V> implements java.util.Set<V>, java.lang.Cloneable, java.lang.Iterable<V>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PROPERTY |
ALLOWDUPLICATE, ALLOWEMPTYVALUE, BIDI, CASESENSITIVE, flag, MAP, READONLY, REMOVED, VISIBLE| Constructor and Description |
|---|
SimpleSet() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
V element) |
boolean |
add(V newValue)
Add a Value to internal List and Array if nesessary
|
boolean |
addAll(java.util.Collection<? extends V> c)
This implementation iterates over the specified collection, and adds
each object returned by the iterator to this collection, in turn.
|
boolean |
addAll(int index,
java.util.Collection<? extends V> values) |
SimpleSet<V> |
clone() |
SimpleSet<V> |
filter(Condition<V> newValue) |
protected boolean |
fireProperty(java.lang.String type,
java.lang.Object oldElement,
java.lang.Object newElement,
java.lang.Object beforeElement,
java.lang.Object value) |
SimpleSet<V> |
getNewList(boolean keyValue) |
<ST extends SimpleSet<V>> |
intersection(java.util.Collection<? extends V> other) |
<ST extends SimpleSet<V>> |
minus(java.lang.Object other) |
V |
remove(int index) |
boolean |
remove(java.lang.Object o) |
V |
set(int index,
V element) |
SimpleSet<V> |
subList(int fromIndex,
int toIndex)
Returns a view of the portion of this list between the specified
fromIndex, inclusive, and toIndex, exclusive.
|
java.lang.String |
toString()
Convert Element to String
|
java.lang.String |
toString(java.lang.String separator) |
<ST extends SimpleSet<V>> |
union(java.util.Collection<? extends V> other) |
SimpleSet<V> |
with(java.lang.Object... values)
Add Elements to List or KeyValue
if param Modulo 2 the Params can be Key,Value
or add all Values to List
|
SimpleSet<V> |
withListener(UpdateListener listener) |
ceiling, copyEntity, equals, filterItems, hashCode, iterator, iterator, iteratorReverse, listIterator, listIterator, subSet, withListaddHashItem, addKeyValue, checkValue, clear, comparator, contains, containsAll, first, flag, get, getByIndex, getKeyByIndex, getPositionKey, getTypClass, getValue, hashKey, hasKeyAndPos, indexOf, init, init, init, isAllowDuplicate, isAllowEmptyValue, isCaseSensitive, isComparator, isEmpty, isReadOnly, isVisible, last, lastIndexOf, move, pack, parseItem, removeAll, removeByIndex, removeByObject, removeItem, reset, retainAll, setAllowEmptyValue, setFlag, setValue, size, toArray, toArray, toString, withAllowDuplicate, withAllowEmptyValue, withCaseSensitive, withFlag, without, withSize, withType, withVisibleequals, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final java.lang.String PROPERTY
public SimpleSet<V> getNewList(boolean keyValue)
getNewList in interface BaseItemgetNewList in class AbstractArray<V>public boolean remove(java.lang.Object o)
public SimpleSet<V> subList(int fromIndex, int toIndex)
AbstractArraysubList in class AbstractArray<V>fromIndex - low endpoint (inclusive) of the subListtoIndex - high endpoint (exclusive) of the subListpublic boolean addAll(int index,
java.util.Collection<? extends V> values)
addAll in class AbstractList<V>public boolean addAll(java.util.Collection<? extends V> c)
AbstractListThis implementation iterates over the specified collection, and adds each object returned by the iterator to this collection, in turn.
Note that this implementation will throw an UnsupportedOperationException unless add is overridden (assuming the specified collection is non-empty).
addAll in interface java.util.Collection<V>addAll in interface java.util.Set<V>addAll in class AbstractList<V>c - List of Elements for addingAbstractList.add(Object)public java.lang.String toString()
BaseItemtoString in interface BaseItemtoString in class AbstractArray<V>public java.lang.String toString(java.lang.String separator)
public V set(int index, V element)
set in class AbstractList<V>public void add(int index,
V element)
add in class AbstractList<V>public V remove(int index)
remove in class AbstractList<V>public boolean add(V newValue)
AbstractListadd in interface java.util.Collection<V>add in interface java.util.Set<V>add in class AbstractList<V>newValue - the new Valuepublic <ST extends SimpleSet<V>> ST intersection(java.util.Collection<? extends V> other)
public SimpleSet<V> withListener(UpdateListener listener)
public SimpleSet<V> with(java.lang.Object... values)
BaseItemwith in interface BaseItemwith in class AbstractArray<V>values - Items to Add to Listprotected boolean fireProperty(java.lang.String type,
java.lang.Object oldElement,
java.lang.Object newElement,
java.lang.Object beforeElement,
java.lang.Object value)
fireProperty in class AbstractArray<V>