- java.lang.Object
-
- org.wildfly.clustering.marshalling.spi.util.CollectionExternalizer<T,Void,Integer>
-
- org.wildfly.clustering.marshalling.spi.util.BoundedCollectionExternalizer<T>
-
- org.wildfly.clustering.marshalling.spi.util.HashSetExternalizer<T>
-
- All Implemented Interfaces:
Externalizer<T>
public class HashSetExternalizer<T extends Set<Object>> extends BoundedCollectionExternalizer<T>
Externalizer for hash table based sets constructed with a capacity rather than a size.- Author:
- Paul Ferraro
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHashSetExternalizer.CapacityFactory<T>Creates a hash table based map or collection with an appropriate capacity given an initial size.
-
Field Summary
Fields Modifier and Type Field Description static floatDEFAULT_LOAD_FACTOR
-
Constructor Summary
Constructors Constructor Description HashSetExternalizer(Class<T> targetClass, IntFunction<T> factory)
-
Method Summary
-
Methods inherited from class org.wildfly.clustering.marshalling.spi.util.CollectionExternalizer
getTargetClass, readObject, size, writeObject
-
-
-
-
Field Detail
-
DEFAULT_LOAD_FACTOR
public static final float DEFAULT_LOAD_FACTOR
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
HashSetExternalizer
public HashSetExternalizer(Class<T> targetClass, IntFunction<T> factory)
-
-