public class AbstractTestBidiMap.TestInverseBidiMap extends AbstractTestBidiMap
AbstractTestBidiMap.TestBidiMapEntrySet, AbstractTestBidiMap.TestBidiMapIterator, AbstractTestBidiMap.TestInverseBidiMap
AbstractTestMap.TestMapEntrySet, AbstractTestMap.TestMapKeySet, AbstractTestMap.TestMapValues
entries
confirmed, entrySet, keySet, map, values
COLLECTIONS_MAJOR_VERSION
Constructor and Description |
---|
AbstractTestBidiMap.TestInverseBidiMap(AbstractTestBidiMap main) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCompatibilityVersion()
Override as DualHashBidiMap didn't exist until version 3.
|
java.lang.Object[] |
getSampleKeys()
Returns the set of keys in the mappings used to test the map.
|
java.lang.Object[] |
getSampleValues()
Returns the set of values in the mappings used to test the map.
|
boolean |
isAllowNullKey()
Returns true if the maps produced by
AbstractTestMap.makeEmptyMap() and AbstractTestMap.makeFullMap()
supports null keys. |
boolean |
isAllowNullValue()
Returns true if the maps produced by
AbstractTestMap.makeEmptyMap() and AbstractTestMap.makeFullMap()
supports null values. |
boolean |
isPutAddSupported()
Returns true if the maps produced by
AbstractTestMap.makeEmptyMap() and AbstractTestMap.makeFullMap()
support the put and putAll operations
adding new mappings. |
boolean |
isPutChangeSupported()
Returns true if the maps produced by
AbstractTestMap.makeEmptyMap() and AbstractTestMap.makeFullMap()
support the put and putAll operations
changing existing mappings. |
boolean |
isRemoveSupported()
Returns true if the maps produced by
AbstractTestMap.makeEmptyMap() and AbstractTestMap.makeFullMap()
support the remove and clear operations. |
boolean |
isSetValueSupported()
Returns true if the maps produced by
AbstractTestMap.makeEmptyMap() and AbstractTestMap.makeFullMap()
support the setValue operation on entrySet entries. |
org.apache.commons.collections.BidiMap |
makeEmptyBidiMap()
Implement to create an empty
BidiMap . |
org.apache.commons.collections.BidiMap |
makeFullBidiMap()
Override to create a full
BidiMap other than the default. |
java.util.Map |
makeFullMap()
Return a new, populated map.
|
bulkTestBidiMapIterator, bulkTestInverseMap, bulkTestMapEntrySet, isAllowDuplicateValues, makeEmptyMap, testBidiClear, testBidiGetKey, testBidiGetKeyInverse, testBidiInverse, testBidiKeySetValuesOrder, testBidiMapIteratorSet, testBidiModifyEntrySet, testBidiPut, testBidiRemove, testBidiRemoveByEntrySet, testBidiRemoveByKeySet, verify, verifyInverse
addSampleMappings, bulkTestMapKeySet, bulkTestMapValues, cloneMapEntry, getNewSampleValues, getOtherKeys, getOtherNonNullStringElements, getOtherValues, isGetStructuralModify, isSubMapViewsSerializable, makeConfirmedMap, makeObject, resetEmpty, resetFull, tearDown, testEmptyMapCompatibility, testEntrySetClearChangesMap, testEntrySetContains1, testEntrySetContains2, testEntrySetContains3, testEntrySetRemove1, testEntrySetRemove2, testEntrySetRemove3, testFullMapCompatibility, testKeySetClearChangesMap, testKeySetRemoveChangesMap, testMakeMap, testMapClear, testMapContainsKey, testMapContainsValue, testMapEquals, testMapGet, testMapHashCode, testMapIsEmpty, testMapPut, testMapPutAll, testMapPutNullKey, testMapPutNullValue, testMapRemove, testMapSize, testMapToString, testSampleMappings, testValuesClearChangesMap, testValuesRemoveChangesMap, verifyEntrySet, verifyKeySet, verifyMap, verifyValues
getCanonicalEmptyCollectionName, getCanonicalFullCollectionName, isEqualsCheckable, isTestSerialization, readExternalFormFromBytes, readExternalFormFromDisk, skipSerializedCanonicalTests, supportsEmptyCollections, supportsFullCollections, testCanonicalEmptyCollectionExists, testCanonicalFullCollectionExists, testEqualsNull, testObjectEqualsSelf, testObjectHashCodeEqualsContract, testObjectHashCodeEqualsSelfHashCode, testSerializeDeserializeThenCompare, testSimpleSerialization, writeExternalFormToBytes, writeExternalFormToDisk
clone, ignoredTests, makeSuite, toString
public AbstractTestBidiMap.TestInverseBidiMap(AbstractTestBidiMap main)
public org.apache.commons.collections.BidiMap makeEmptyBidiMap()
AbstractTestBidiMap
BidiMap
.makeEmptyBidiMap
in class AbstractTestBidiMap
BidiMap
implementation.public org.apache.commons.collections.BidiMap makeFullBidiMap()
AbstractTestBidiMap
BidiMap
other than the default.makeFullBidiMap
in class AbstractTestBidiMap
BidiMap
implementation.public java.util.Map makeFullMap()
AbstractTestMap
AbstractTestMap.getSampleKeys()
and
AbstractTestMap.getSampleValues()
. The default implementation uses makeEmptyMap()
and calls AbstractTestMap.addSampleMappings(java.util.Map)
to add all the mappings to the
map.makeFullMap
in class AbstractTestMap
public java.lang.Object[] getSampleKeys()
AbstractTestMap
AbstractTestMap.getSampleValues()
and all array elements must be different. The
default implementation constructs a set of String keys, and includes a
single null key if AbstractTestMap.isAllowNullKey()
returns true
.getSampleKeys
in class AbstractTestMap
public java.lang.Object[] getSampleValues()
AbstractTestMap
AbstractTestMap.getSampleKeys()
. The default implementation constructs a set of
String values and includes a single null value if
AbstractTestMap.isAllowNullValue()
returns true
, and includes
two values that are the same if AbstractTestMap.isAllowDuplicateValues()
returns
true
.getSampleValues
in class AbstractTestMap
public java.lang.String getCompatibilityVersion()
AbstractTestBidiMap
getCompatibilityVersion
in class AbstractTestBidiMap
null
if this object shouldn't be
tested for compatibility with previous versions.public boolean isAllowNullKey()
AbstractTestMap
AbstractTestMap.makeEmptyMap()
and AbstractTestMap.makeFullMap()
supports null keys.
Default implementation returns true. Override if your collection class does not support null keys.
isAllowNullKey
in class AbstractTestMap
public boolean isAllowNullValue()
AbstractTestMap
AbstractTestMap.makeEmptyMap()
and AbstractTestMap.makeFullMap()
supports null values.
Default implementation returns true. Override if your collection class does not support null values.
isAllowNullValue
in class AbstractTestMap
public boolean isPutAddSupported()
AbstractTestMap
AbstractTestMap.makeEmptyMap()
and AbstractTestMap.makeFullMap()
support the put
and putAll
operations
adding new mappings.
Default implementation returns true. Override if your collection class does not support put adding.
isPutAddSupported
in class AbstractTestMap
public boolean isPutChangeSupported()
AbstractTestMap
AbstractTestMap.makeEmptyMap()
and AbstractTestMap.makeFullMap()
support the put
and putAll
operations
changing existing mappings.
Default implementation returns true. Override if your collection class does not support put changing.
isPutChangeSupported
in class AbstractTestMap
public boolean isSetValueSupported()
AbstractTestMap
AbstractTestMap.makeEmptyMap()
and AbstractTestMap.makeFullMap()
support the setValue
operation on entrySet entries.
Default implementation returns isPutChangeSupported(). Override if your collection class does not support setValue but does support put changing.
isSetValueSupported
in class AbstractTestMap
public boolean isRemoveSupported()
AbstractTestMap
AbstractTestMap.makeEmptyMap()
and AbstractTestMap.makeFullMap()
support the remove
and clear
operations.
Default implementation returns true. Override if your collection class does not support removal operations.
isRemoveSupported
in class AbstractTestMap
Copyright © 2001-2015 Apache Software Foundation. All Rights Reserved.