static class FXCollections.CheckedObservableMap.CheckedEntrySet<K,V>
extends java.lang.Object
implements java.util.Set<java.util.Map.Entry<K,V>>
Modifier and Type | Class and Description |
---|---|
private static class |
FXCollections.CheckedObservableMap.CheckedEntrySet.CheckedEntry<K,V,T>
This "wrapper class" serves two purposes: it prevents
the client from modifying the backing Map, by short-circuiting
the setValue method, and it protects the backing Map against
an ill-behaved Map.Entry that attempts to modify another
Map.Entry when asked to perform an equality check.
|
Modifier and Type | Field and Description |
---|---|
private java.util.Set<java.util.Map.Entry<K,V>> |
s |
private java.lang.Class<V> |
valueType |
Constructor and Description |
---|
CheckedEntrySet(java.util.Set<java.util.Map.Entry<K,V>> s,
java.lang.Class<V> valueType) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(java.util.Map.Entry<K,V> e) |
boolean |
addAll(java.util.Collection<? extends java.util.Map.Entry<K,V>> coll) |
private boolean |
batchRemove(java.util.Collection<?> c,
boolean complement) |
(package private) static <K,V,T> FXCollections.CheckedObservableMap.CheckedEntrySet.CheckedEntry<K,V,T> |
checkedEntry(java.util.Map.Entry<K,V> e,
java.lang.Class<T> valueType) |
void |
clear() |
boolean |
contains(java.lang.Object o)
This method is overridden to protect the backing set against
an object with a nefarious equals function that senses
that the equality-candidate is Map.Entry and calls its
setValue method.
|
boolean |
containsAll(java.util.Collection<?> c)
The bulk collection methods are overridden to protect
against an unscrupulous collection whose contains(Object o)
method senses when o is a Map.Entry, and calls o.setValue.
|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
boolean |
isEmpty() |
java.util.Iterator<java.util.Map.Entry<K,V>> |
iterator() |
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection<?> c) |
boolean |
retainAll(java.util.Collection<?> c) |
int |
size() |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
java.lang.String |
toString() |
private final java.lang.Class<V> valueType
public int size()
public boolean isEmpty()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
public void clear()
public java.lang.Object[] toArray()
public <T> T[] toArray(T[] a)
public boolean contains(java.lang.Object o)
public boolean containsAll(java.util.Collection<?> c)
public boolean remove(java.lang.Object o)
public boolean removeAll(java.util.Collection<?> c)
public boolean retainAll(java.util.Collection<?> c)
private boolean batchRemove(java.util.Collection<?> c, boolean complement)
public boolean equals(java.lang.Object o)
static <K,V,T> FXCollections.CheckedObservableMap.CheckedEntrySet.CheckedEntry<K,V,T> checkedEntry(java.util.Map.Entry<K,V> e, java.lang.Class<T> valueType)