New API
Show API added in:
Contents
-
New ClassesClassAdded inDescription1.3This class provides a skeletal implementation of the
MultiMapinterface, to minimize the effort requires to implement this interface.1.31.1APersistentMapFactoryuses hash-consing to ensure that theMaps created by it maximally reuse space.1.3APersistentMultiMapFactoryuses hash-consing to ensure that theMultiMaps created by it maximally reuse space.1.1APersistentSetFactoryuses hash-consing to ensure that theSets created by it maximally reuse space.1.31.3UnmodifiableMapSetprevents mutation of a wrappedMapSet.1.3UnmodifiableMultiMapSetprevents mutation of a wrappedMultiMapSet.
-
New Record ClassesRecord ClassAdded inDescription2.0An immutable pair of values, either of which may be
null.
-
New FieldsFieldAdded inDescription1.2An empty set.1.3A
MapFactorythat generatesLinkedHashMaps.1.3ASetFactorythat generatesLinkedHashSets.1.5AMapFactorythat generatesTreeMaps.
-
New MethodsMethodAdded inDescription1.3Implementations should return the wrapped
Collectionhere.1.2AComparatorfor objects that implementComparable(checked dynamically at run-time).1.2An empty map, parameterized to play nicely with Java's type system.1.2An empty multi-map, parameterized to play nicely with Java's type system.2.0Undoes all changes to this mark's environment since the mark was taken, asEnvironment.undoToMark(Mark)does.1.3AMapFactorythat generatesEnumMaps.1.3ASetFactorythat generatesEnumSets.1.3Returns aMapFactorythat generatesLinkedHashMaps.1.3Returns aSetFactorythat generatesLinkedHashSets.1.5Returns aMapFactorythat generatesTreeMaps, in the keys' natural order.1.51.52.02.02.0Returns an iterator over theMap.Entrys in thisHeap, in no particular order: the iterator ofHeap.entries().1.3Implementations should return the wrappedListhere.1.3Implementations should return the wrappedMaphere.2.0Replaces the mapping fromkeytooldValue, if there is one, with a mapping fromkeytonewValue.2.0Replaces each mapping from a keykto a valuevwith a mapping fromktofunction.apply(k, v).1.31.3Unmodifiable iterator.1.3Implementations should return the wrappedSethere.2.0Creates aSpliteratorover the elements of this vector, in order.1.3Create anUnmodifiableIteratorfrom the given (potentailly modifiable)Iterator.
-
New ConstructorsConstructorAdded inDescription2.0Creates a
FilterIteratorwhich returnsmap.apply(o)for each elementoofifor whichfilter.test(o)is true.2.0Creates aGenericMultiMapwith the mappings ofm, using aHashMapfor the map andHashSets for the value collections.2.0Creates aGenericMultiMapwith the same mappings asmm, which uses the sameMapFactoryandCollectionFactoryasmm.2.0Creates aGenericMultiMapwith the mappings ofmm, using aHashMapfor the map andHashSets for the value collections.