public static class RestrictedCollections.RestrictedEntrySet extends Base implements Set, Serializable
| Modifier and Type | Class and Description |
|---|---|
protected class |
RestrictedCollections.RestrictedEntrySet.RestrictedEntry
A Map Entry that restricts the key and value types.
|
protected class |
RestrictedCollections.RestrictedEntrySet.RestrictedIterator
A Map Entry Iterator that restricts the key and value types.
|
Base.LoggingWriter, Base.StackFrame| Modifier and Type | Field and Description |
|---|---|
protected Class |
m_clzVal
The class of value stored in the Map.
|
protected Set |
m_set
The underlying Entry Set.
|
| Constructor and Description |
|---|
RestrictedEntrySet(Set set, Class clzKey, Class clzVal)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Object o)
Ensures that this Collection contains the specified element.
|
boolean |
addAll(Collection col)
Adds all of the elements in the specified Collection to this Collection (optional operation).
|
protected void |
checkValue(Object o)
Check the passed object to verify that it passes the "value" restriction of this Map.
|
void |
clear()
Removes all of the elements from this Collection.
|
boolean |
contains(Object o)
Returns true if this Collection contains the specified element.
|
boolean |
containsAll(Collection col)
Returns true if this Collection contains all of the elements in the specified Collection.
|
boolean |
equals(Object o)
Compares the specified object with this collection for equality.
|
int |
hashCode()
Returns the hash code value for this collection.
|
boolean |
isEmpty()
Returns true if this Collection contains no elements.
|
Iterator |
iterator()
Returns an Iterator over the elements contained in this Collection.
|
boolean |
remove(Object o)
Removes a single instance of the specified element from this Collection, if it is present (optional operation).
|
boolean |
removeAll(Collection col)
Removes all this Collection's elements that are also contained in the specified Collection (optional operation).
|
boolean |
retainAll(Collection col)
Retains only the elements in this Collection that are contained in the specified Collection (optional operation).
|
int |
size()
Returns the number of elements in this Collection.
|
Object[] |
toArray()
Returns an array containing all of the elements in this Collection.
|
Object[] |
toArray(Object[] ao)
Returns an array containing all of the elements in this Collection whose runtime type is that of the specified array.
|
String |
toString()
Return a String description for this collection.
|
protected Map.Entry |
wrapEntry(Map.Entry entry)
Wrap an Entry from the Entry Set to make a Restricted Entry.
|
protected Iterator |
wrapIterator(Iterator iter)
Wrap an Iterator from the Entry Set to make a Restricted Iterator.
|
azzert, azzert, azzert, azzertFailed, breakLines, breakLines, capitalize, checkNotEmpty, checkNotNull, checkRange, computeSafeWaitTime, decimalValue, dup, dup, ensureBigDecimal, ensureClassLoader, ensureRuntimeException, ensureRuntimeException, equals, equalsDeep, err, err, err, err, err, escape, formatDateTime, getCallerStackFrame, getCommonMonitor, getCommonMonitor, getCommonMonitor, getContextClassLoader, getContextClassLoader, getDeepMessage, getErr, getLastSafeTimeMillis, getLog, getMaxDecDigits, getMaxHexDigits, getOriginalException, getOut, getRandom, getRandomBinary, getRandomBinary, getRandomString, getSafeTimeMillis, getStackFrame, getStackFrames, getStackTrace, getStackTrace, getThreadFactory, getTimeZone, getUpTimeMillis, hashCode, hexValue, indentString, indentString, isDecimal, isHex, isLogEcho, isOctal, log, log, log, log, log, makeInteger, makeLong, makeThread, mod, mod, octalValue, out, out, out, out, out, pad, parseBandwidth, parseBandwidth, parseDelimitedString, parseHex, parseHex, parseMemorySize, parseMemorySize, parsePercentage, parseTime, parseTime, parseTimeNanos, parseTimeNanos, printStackTrace, randomize, randomize, randomize, read, read, read, read, read, read, read, replace, setErr, setLog, setLogEcho, setOut, sleep, toBandwidthString, toBandwidthString, toCharEscape, toCrc, toCrc, toCrc, toCrc, toCrc, toDecString, toDelimitedString, toDelimitedString, toDelimitedString, toDelimitedString, toHex, toHex, toHexDump, toHexEscape, toHexEscape, toHexEscape, toHexEscape, toHexString, toMemorySizeString, toMemorySizeString, toQuotedCharEscape, toQuotedStringEscape, toSqlString, toString, toString, toStringEscape, toUnicodeEscape, trace, trace, trace, trace, trace, trace, trace, trace, trace, truncateString, truncateString, waitclone, finalize, getClass, notify, notifyAll, wait, wait, waitspliteratorparallelStream, removeIf, streamprotected Set m_set
protected Class m_clzVal
public int size()
size in interface Collectionsize in interface Setpublic boolean isEmpty()
isEmpty in interface CollectionisEmpty in interface Setpublic boolean contains(Object o)
e such that (o==null ? e==null : o.equals(e)).contains in interface Collectioncontains in interface Seto - the object to search for in the Collectionpublic Iterator iterator()
public Object[] toArray()
toArray in interface CollectiontoArray in interface Setpublic Object[] toArray(Object[] ao)
toArray in interface CollectiontoArray in interface Setao - the array into which the elements of this Collection are to be stored, if it is big enough; otherwise, a new array of the same runtime type is allocated for this purposepublic boolean add(Object o)
add in interface Collectionadd in interface Seto - element whose presence in this Collection is to be ensuredpublic boolean remove(Object o)
e such that (o==null ? e==null : o.equals(e)), if the Collection contains one or more such elements. Returns true if the Collection contained the specified element (or equivalently, if the Collection changed as a result of the call).remove in interface Collectionremove in interface Seto - element to be removed from this Collection, if presentpublic boolean containsAll(Collection col)
containsAll in interface CollectioncontainsAll in interface Setcol - Collection to be checked for containment in this Collectionpublic boolean addAll(Collection col)
addAll in interface CollectionaddAll in interface Setcol - elements to be inserted into this Collectionpublic boolean removeAll(Collection col)
removeAll in interface CollectionremoveAll in interface Setcol - elements to be removed from this Collectionpublic boolean retainAll(Collection col)
retainAll in interface CollectionretainAll in interface Setcol - elements to be retained in this Collectionpublic void clear()
clear in interface Collectionclear in interface Setpublic boolean equals(Object o)
Obeys the general contract of Collection.equals.
public int hashCode()
public String toString()
protected void checkValue(Object o)
o - the Object to checkClassCastException - if the class of the passed Object prevents it from being used as a value in this Mapprotected Map.Entry wrapEntry(Map.Entry entry)
entry - a Map Entry to wrap