public final class UpdatableCollections extends Object
UpdatableList
sModifier and Type | Method and Description |
---|---|
static <E> UpdatableList<E> |
emptyList()
Get instance of UpdatableList that does not update anything and
UpdatableList.copy() always return an empty list. |
static <K,V> UpdatableMap<K,V> |
emptyMap()
Get instance of UpdatableMap that does not update anything and
UpdatableMap.copy() always return an empty Map. |
static <E> UpdatableSet<E> |
emptySet()
Get instance of UpdatableSet that does not update anything and
UpdatableSet.copy() always return an empty Set. |
static <E> UpdatableList<E> |
newUpdatableList()
Create new instance of UpdatableList not accepting null values
|
static <K,V> UpdatableMap<K,V> |
newUpdatableMap()
Create new instance of UpdatableMap not accepting null values
|
static <E> UpdatableSet<E> |
newUpdatableSet()
Create new instance of UpdatableSet not accepting null values
|
public static <E> UpdatableList<E> emptyList()
UpdatableList.copy()
always return an empty list. This implementation does not raise any exception on
UpdatableCollection.add(Object)
and UpdatableCollection.addAll(Collection)
method but merely return false always. This is useful merely for polymorphism.public static <E> UpdatableList<E> newUpdatableList()
public static <E> UpdatableSet<E> emptySet()
UpdatableSet.copy()
always return an empty Set. This implementation does not raise any exception on
UpdatableCollection.add(Object)
and UpdatableCollection.addAll(Collection)
method but merely return false always. This is useful merely for polymorphism.public static <E> UpdatableSet<E> newUpdatableSet()
public static <K,V> UpdatableMap<K,V> emptyMap()
UpdatableMap.copy()
always return an empty Map. This implementation does not raise any exception on
UpdatableMap.put(Object, Object)
and UpdatableMap.putAll(Map)
method but merely return false always. This is useful merely for polymorphism.public static <K,V> UpdatableMap<K,V> newUpdatableMap()
Copyright © 2012–2020. All rights reserved.