Uses of Class
fj.Hash
Packages that use Hash
Package
Description
Types that set the premise for the existence of Functional Java.
Common algebraic data types.
-
Uses of Hash in fj
Modifier and TypeFieldDescriptionstatic final Hash
<BigDecimal> Hash.bigdecimalHash
A hash instance for theBigDecimal
type.static final Hash
<BigInteger> Hash.bigintHash
A hash instance for theBigInteger
type.Hash.booleanHash
A hash instance for theboolean
type.Hash.byteHash
A hash instance for thebyte
type.Hash.charHash
A hash instance for thechar
type.Hash.doubleHash
A hash instance for thedouble
type.Hash.floatHash
A hash instance for thefloat
type.Hash.intHash
A hash instance for theint
type.Hash.longHash
A hash instance for thelong
type.Hash.naturalHash
A hash instance for theNatural
type.Hash.shortHash
A hash instance for theshort
type.static final Hash
<StringBuffer> Hash.stringBufferHash
A hash instance for theStringBuffer
type.static final Hash
<StringBuilder> Hash.stringBuilderHash
A hash instance for theStringBuilder
type.Hash.stringHash
A hash instance for theString
type.Modifier and TypeMethodDescriptionstatic <A> Hash
<A> Hash.anyHash()
A hash that usesObject.hashCode()
.A hash instance for theArray
type.<B> Hash
<B> Maps the given function across this hash as a contra-variant functor.Hash.either3Hash
(Hash<A> ha, Hash<B> hb, Hash<C> hc) Hash.eitherHash
(Hash<A> ha, Hash<B> hb) A hash instance for theEither
type.static <A> Hash
<A> Construct a hash with the given hash function.A hash instance for theList
type.static <A> Hash
<NonEmptyList<A>> Hash.nonEmptyListHash
(Hash<A> ha) A hash instance for theNonEmptyList
type.Hash.optionHash
(Hash<A> ha) A hash instance for theOption
type.A hash instance for a product-1.A hash instance for a product-2.A hash instance for a product-3.A hash instance for a product-4.A hash instance for a product-5.A hash instance for a product-6.A hash instance for a product-7.Hash.p8Hash
(Hash<A> ha, Hash<B> hb, Hash<C> hc, Hash<D> hd, Hash<E> he, Hash<F$> hf, Hash<G> hg, Hash<H> hh) A hash instance for a product-8.Hash.resultHash
(Hash<A> ha, Hash<I> hi) A hash instance for theResult
type.Hash.streamHash
(Hash<A> ha) A hash instance for theStream
type.A hash instance for theTree
type.Hash.treeMapHash
(Hash<K> h, Hash<V> v) static <A> Hash
<TreeZipper<A>> Hash.treeZipperHash
(Hash<A> ha) A hash instance for theTreeZipper
type.A hash instance for a vector-2.A hash instance for a vector-3.A hash instance for a vector-4.A hash instance for a vector-5.A hash instance for a vector-6.A hash instance for a vector-7.A hash instance for a vector-8.static <A,
B> Hash <Validation<A, B>> Hash.validationHash
(Hash<A> ha, Hash<B> hb) A hash instance for theValidation
type.Hash.zipperHash
(Hash<A> ha) A hash instance for theZipper
type.Modifier and TypeMethodDescriptionF.contramapHash()
Promotes this function to map over a Hash as a contravariant functor.F.contramapHash()
Promotes this function to map over a Hash as a contravariant functor.Modifier and TypeMethodDescriptionA hash instance for theArray
type.Hash.either3Hash
(Hash<A> ha, Hash<B> hb, Hash<C> hc) Hash.eitherHash
(Hash<A> ha, Hash<B> hb) A hash instance for theEither
type.A hash instance for theList
type.static <A> Hash
<NonEmptyList<A>> Hash.nonEmptyListHash
(Hash<A> ha) A hash instance for theNonEmptyList
type.Hash.optionHash
(Hash<A> ha) A hash instance for theOption
type.A hash instance for a product-1.A hash instance for a product-2.A hash instance for a product-3.A hash instance for a product-4.A hash instance for a product-5.A hash instance for a product-6.A hash instance for a product-7.Hash.p8Hash
(Hash<A> ha, Hash<B> hb, Hash<C> hc, Hash<D> hd, Hash<E> he, Hash<F$> hf, Hash<G> hg, Hash<H> hh) A hash instance for a product-8.Hash.resultHash
(Hash<A> ha, Hash<I> hi) A hash instance for theResult
type.Hash.streamHash
(Hash<A> ha) A hash instance for theStream
type.A hash instance for theTree
type.Hash.treeMapHash
(Hash<K> h, Hash<V> v) static <A> Hash
<TreeZipper<A>> Hash.treeZipperHash
(Hash<A> ha) A hash instance for theTreeZipper
type.A hash instance for a vector-2.A hash instance for a vector-3.A hash instance for a vector-4.A hash instance for a vector-5.A hash instance for a vector-6.A hash instance for a vector-7.A hash instance for a vector-8.static <A,
B> Hash <Validation<A, B>> Hash.validationHash
(Hash<A> ha, Hash<B> hb) A hash instance for theValidation
type.Hash.zipperHash
(Hash<A> ha) A hash instance for theZipper
type. -
Uses of Hash in fj.data
Modifier and TypeMethodDescriptionstatic <K,
V> HashMap <K, V> HashMap.arrayHashMap
(Equal<K> equal, Hash<K> hash, P2<K, V>... entries) Converts the array to a HashMapstatic <A> HashSet
<A> HashSet.arrayHashSet
(Equal<A> e, Hash<A> h, A... as) Create a HashSet from the array.static <A> HashSet
<A> Creates a new HashSet using the given Equal and Hashstatic <K,
V> HashMap <K, V> static <K,
V> HashMap <K, V> Construct a hash map.static <A> HashSet
<A> Create a HashSet from the array.static <K,
V> HashMap <K, V> HashMap.iterableHashMap
(Equal<K> equal, Hash<K> hash, Iterable<P2<K, V>> entries) Converts the Iterable to a HashMapstatic <A> HashSet
<A> HashSet.iterableHashSet
(Equal<A> e, Hash<A> h, Iterable<A> it) Create a HashSet from the Iterable.static <K,
V> HashMap <K, V> HashMap.iteratorHashMap
(Equal<K> equal, Hash<K> hash, Iterator<P2<K, V>> entries) Converts the Iterator to a HashMapstatic <A> HashSet
<A> HashSet.iteratorHashSet
(Equal<A> e, Hash<A> h, Iterator<A> it) Create a HashSet from the Iterator.<A,
B> HashMap <A, B> <A,
B> HashMap <A, B> ModifierConstructorDescriptionConstruct a hash map with the given equality and hashing strategy.Construct a hash map with the given equality and hashing strategy.Construct a hash map with the given equality and hashing strategy.Construct a hash set with the given equality and hashing strategy.Construct a hash set with the given equality and hashing strategy.Construct a hash set with the given equality and hashing strategy. -
Uses of Hash in fj.data.hamt
Fields in fj.data.hamt declared as HashMethods in fj.data.hamt with parameters of type HashModifier and TypeMethodDescriptionstatic <K,
V> HashArrayMappedTrie <K, V> Creates an empty trie.private static <K,
V> HashArrayMappedTrie <K, V> Static constructor for a HAMT instance.Constructors in fj.data.hamt with parameters of type Hash