Uses of Class
fj.Hash
-
Packages that use Hash Package Description fj Types that set the premise for the existence of Functional Java.fj.data Common algebraic data types.fj.data.hamt -
-
Uses of Hash in fj
Fields in fj declared as Hash Modifier and Type Field Description static Hash<java.math.BigDecimal>
Hash. bigdecimalHash
A hash instance for theBigDecimal
type.static Hash<java.math.BigInteger>
Hash. bigintHash
A hash instance for theBigInteger
type.static Hash<java.lang.Boolean>
Hash. booleanHash
A hash instance for theboolean
type.static Hash<java.lang.Byte>
Hash. byteHash
A hash instance for thebyte
type.static Hash<java.lang.Character>
Hash. charHash
A hash instance for thechar
type.static Hash<java.lang.Double>
Hash. doubleHash
A hash instance for thedouble
type.static Hash<java.lang.Float>
Hash. floatHash
A hash instance for thefloat
type.static Hash<java.lang.Integer>
Hash. intHash
A hash instance for theint
type.static Hash<java.lang.Long>
Hash. longHash
A hash instance for thelong
type.static Hash<Natural>
Hash. naturalHash
A hash instance for theNatural
type.static Hash<java.lang.Short>
Hash. shortHash
A hash instance for theshort
type.static Hash<java.lang.StringBuffer>
Hash. stringBufferHash
A hash instance for theStringBuffer
type.static Hash<java.lang.StringBuilder>
Hash. stringBuilderHash
A hash instance for theStringBuilder
type.static Hash<java.lang.String>
Hash. stringHash
A hash instance for theString
type.Methods in fj that return Hash Modifier and Type Method Description static <A> Hash<A>
Hash. anyHash()
A hash that usesObject.hashCode()
.static <A> Hash<Array<A>>
Hash. arrayHash(Hash<A> ha)
A hash instance for theArray
type.<B> Hash<B>
Hash. contramap(F<B,A> g)
Maps the given function across this hash as a contra-variant functor.static <A,B,C>
Hash<Either3<A,B,C>>Hash. either3Hash(Hash<A> ha, Hash<B> hb, Hash<C> hc)
static <A,B>
Hash<Either<A,B>>Hash. eitherHash(Hash<A> ha, Hash<B> hb)
A hash instance for theEither
type.static <A> Hash<A>
Hash. hash(F<A,java.lang.Integer> f)
Construct a hash with the given hash function.static <A> Hash<List<A>>
Hash. listHash(Hash<A> ha)
A hash instance for theList
type.static <A> Hash<NonEmptyList<A>>
Hash. nonEmptyListHash(Hash<A> ha)
A hash instance for theNonEmptyList
type.static <A> Hash<Option<A>>
Hash. optionHash(Hash<A> ha)
A hash instance for theOption
type.static <A> Hash<P1<A>>
Hash. p1Hash(Hash<A> ha)
A hash instance for a product-1.static <A,B>
Hash<P2<A,B>>Hash. p2Hash(Hash<A> ha, Hash<B> hb)
A hash instance for a product-2.static <A,B,C>
Hash<P3<A,B,C>>Hash. p3Hash(Hash<A> ha, Hash<B> hb, Hash<C> hc)
A hash instance for a product-3.static <A,B,C,D>
Hash<P4<A,B,C,D>>Hash. p4Hash(Hash<A> ha, Hash<B> hb, Hash<C> hc, Hash<D> hd)
A hash instance for a product-4.static <A,B,C,D,E>
Hash<P5<A,B,C,D,E>>Hash. p5Hash(Hash<A> ha, Hash<B> hb, Hash<C> hc, Hash<D> hd, Hash<E> he)
A hash instance for a product-5.static <A,B,C,D,E,F$>
Hash<P6<A,B,C,D,E,F$>>Hash. p6Hash(Hash<A> ha, Hash<B> hb, Hash<C> hc, Hash<D> hd, Hash<E> he, Hash<F$> hf)
A hash instance for a product-6.static <A,B,C,D,E,F$,G>
Hash<P7<A,B,C,D,E,F$,G>>Hash. p7Hash(Hash<A> ha, Hash<B> hb, Hash<C> hc, Hash<D> hd, Hash<E> he, Hash<F$> hf, Hash<G> hg)
A hash instance for a product-7.static <A,B,C,D,E,F$,G,H>
Hash<P8<A,B,C,D,E,F$,G,H>>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.static <I,A>
Hash<Result<I,A>>Hash. resultHash(Hash<A> ha, Hash<I> hi)
A hash instance for theResult
type.static <A> Hash<Seq<A>>
Hash. seqHash(Hash<A> h)
static <A> Hash<Set<A>>
Hash. setHash(Hash<A> h)
static <A> Hash<Stream<A>>
Hash. streamHash(Hash<A> ha)
A hash instance for theStream
type.static <A> Hash<Tree<A>>
Hash. treeHash(Hash<A> ha)
A hash instance for theTree
type.static <K,V>
Hash<TreeMap<K,V>>Hash. treeMapHash(Hash<K> h, Hash<V> v)
static <A> Hash<TreeZipper<A>>
Hash. treeZipperHash(Hash<A> ha)
A hash instance for theTreeZipper
type.static <A> Hash<V2<A>>
Hash. v2Hash(Hash<A> ea)
A hash instance for a vector-2.static <A> Hash<V3<A>>
Hash. v3Hash(Hash<A> ea)
A hash instance for a vector-3.static <A> Hash<V4<A>>
Hash. v4Hash(Hash<A> ea)
A hash instance for a vector-4.static <A> Hash<V5<A>>
Hash. v5Hash(Hash<A> ea)
A hash instance for a vector-5.static <A> Hash<V6<A>>
Hash. v6Hash(Hash<A> ea)
A hash instance for a vector-6.static <A> Hash<V7<A>>
Hash. v7Hash(Hash<A> ea)
A hash instance for a vector-7.static <A> Hash<V8<A>>
Hash. v8Hash(Hash<A> ea)
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.static <A> Hash<Zipper<A>>
Hash. zipperHash(Hash<A> ha)
A hash instance for theZipper
type.Methods in fj that return types with arguments of type Hash Modifier and Type Method Description default F<Hash<B>,Hash<A>>
F. contramapHash()
Promotes this function to map over a Hash as a contravariant functor.default F<Hash<B>,Hash<A>>
F. contramapHash()
Promotes this function to map over a Hash as a contravariant functor.Methods in fj with parameters of type Hash Modifier and Type Method Description static <A> Hash<Array<A>>
Hash. arrayHash(Hash<A> ha)
A hash instance for theArray
type.static <A,B,C>
Hash<Either3<A,B,C>>Hash. either3Hash(Hash<A> ha, Hash<B> hb, Hash<C> hc)
static <A,B>
Hash<Either<A,B>>Hash. eitherHash(Hash<A> ha, Hash<B> hb)
A hash instance for theEither
type.static <A> Hash<List<A>>
Hash. listHash(Hash<A> ha)
A hash instance for theList
type.static <A> Hash<NonEmptyList<A>>
Hash. nonEmptyListHash(Hash<A> ha)
A hash instance for theNonEmptyList
type.static <A> Hash<Option<A>>
Hash. optionHash(Hash<A> ha)
A hash instance for theOption
type.static <A> Hash<P1<A>>
Hash. p1Hash(Hash<A> ha)
A hash instance for a product-1.static <A,B>
Hash<P2<A,B>>Hash. p2Hash(Hash<A> ha, Hash<B> hb)
A hash instance for a product-2.static <A,B,C>
Hash<P3<A,B,C>>Hash. p3Hash(Hash<A> ha, Hash<B> hb, Hash<C> hc)
A hash instance for a product-3.static <A,B,C,D>
Hash<P4<A,B,C,D>>Hash. p4Hash(Hash<A> ha, Hash<B> hb, Hash<C> hc, Hash<D> hd)
A hash instance for a product-4.static <A,B,C,D,E>
Hash<P5<A,B,C,D,E>>Hash. p5Hash(Hash<A> ha, Hash<B> hb, Hash<C> hc, Hash<D> hd, Hash<E> he)
A hash instance for a product-5.static <A,B,C,D,E,F$>
Hash<P6<A,B,C,D,E,F$>>Hash. p6Hash(Hash<A> ha, Hash<B> hb, Hash<C> hc, Hash<D> hd, Hash<E> he, Hash<F$> hf)
A hash instance for a product-6.static <A,B,C,D,E,F$,G>
Hash<P7<A,B,C,D,E,F$,G>>Hash. p7Hash(Hash<A> ha, Hash<B> hb, Hash<C> hc, Hash<D> hd, Hash<E> he, Hash<F$> hf, Hash<G> hg)
A hash instance for a product-7.static <A,B,C,D,E,F$,G,H>
Hash<P8<A,B,C,D,E,F$,G,H>>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.static <I,A>
Hash<Result<I,A>>Hash. resultHash(Hash<A> ha, Hash<I> hi)
A hash instance for theResult
type.static <A> Hash<Seq<A>>
Hash. seqHash(Hash<A> h)
static <A> Hash<Set<A>>
Hash. setHash(Hash<A> h)
static <A> Hash<Stream<A>>
Hash. streamHash(Hash<A> ha)
A hash instance for theStream
type.static <A> Hash<Tree<A>>
Hash. treeHash(Hash<A> ha)
A hash instance for theTree
type.static <K,V>
Hash<TreeMap<K,V>>Hash. treeMapHash(Hash<K> h, Hash<V> v)
static <A> Hash<TreeZipper<A>>
Hash. treeZipperHash(Hash<A> ha)
A hash instance for theTreeZipper
type.static <A> Hash<V2<A>>
Hash. v2Hash(Hash<A> ea)
A hash instance for a vector-2.static <A> Hash<V3<A>>
Hash. v3Hash(Hash<A> ea)
A hash instance for a vector-3.static <A> Hash<V4<A>>
Hash. v4Hash(Hash<A> ea)
A hash instance for a vector-4.static <A> Hash<V5<A>>
Hash. v5Hash(Hash<A> ea)
A hash instance for a vector-5.static <A> Hash<V6<A>>
Hash. v6Hash(Hash<A> ea)
A hash instance for a vector-6.static <A> Hash<V7<A>>
Hash. v7Hash(Hash<A> ea)
A hash instance for a vector-7.static <A> Hash<V8<A>>
Hash. v8Hash(Hash<A> ea)
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.static <A> Hash<Zipper<A>>
Hash. zipperHash(Hash<A> ha)
A hash instance for theZipper
type. -
Uses of Hash in fj.data
Fields in fj.data declared as Hash Modifier and Type Field Description private Hash<K>
HashMap. h
Methods in fj.data with parameters of type Hash Modifier and Type Method Description static <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>
HashSet. empty(Equal<A> e, Hash<A> h)
Creates a new HashSet using the given Equal and Hashstatic <K,V>
HashMap<K,V>HashMap. fromMap(Equal<K> eq, Hash<K> h, java.util.Map<K,V> map)
static <K,V>
HashMap<K,V>HashMap. hashMap(Equal<K> e, Hash<K> h)
Construct a hash map.static <A> HashSet<A>
HashSet. hashSet(Equal<A> e, Hash<A> h, A... as)
Create a HashSet from the array.static <K,V>
HashMap<K,V>HashMap. iterableHashMap(Equal<K> equal, Hash<K> hash, java.lang.Iterable<P2<K,V>> entries)
Converts the Iterable to a HashMapstatic <A> HashSet<A>
HashSet. iterableHashSet(Equal<A> e, Hash<A> h, java.lang.Iterable<A> it)
Create a HashSet from the Iterable.static <K,V>
HashMap<K,V>HashMap. iteratorHashMap(Equal<K> equal, Hash<K> hash, java.util.Iterator<P2<K,V>> entries)
Converts the Iterator to a HashMapstatic <A> HashSet<A>
HashSet. iteratorHashSet(Equal<A> e, Hash<A> h, java.util.Iterator<A> it)
Create a HashSet from the Iterator.<A,B>
HashMap<A,B>HashMap. map(F<P2<K,V>,P2<A,B>> function, Equal<A> equal, Hash<A> hash)
<A,B>
HashMap<A,B>HashMap. map(F<K,A> keyFunction, F<V,B> valueFunction, Equal<A> equal, Hash<A> hash)
<A> HashMap<A,V>
HashMap. mapKeys(F<K,A> keyFunction, Equal<A> equal, Hash<A> hash)
Constructors in fj.data with parameters of type Hash Constructor Description HashMap(Equal<K> e, Hash<K> h)
Construct a hash map with the given equality and hashing strategy.HashMap(Equal<K> e, Hash<K> h, int initialCapacity)
Construct a hash map with the given equality and hashing strategy.HashMap(Equal<K> e, Hash<K> h, int initialCapacity, float loadFactor)
Construct a hash map with the given equality and hashing strategy.HashMap(java.util.Map<K,V> map, Equal<K> e, Hash<K> h)
HashSet(Equal<A> e, Hash<A> h)
Construct a hash set with the given equality and hashing strategy.HashSet(Equal<A> e, Hash<A> h, int initialCapacity)
Construct a hash set with the given equality and hashing strategy.HashSet(Equal<A> e, Hash<A> h, int initialCapacity, float loadFactor)
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 Hash Modifier and Type Field Description private Hash<K>
HashArrayMappedTrie. hash
Methods in fj.data.hamt with parameters of type Hash Modifier and Type Method Description static <K,V>
HashArrayMappedTrie<K,V>HashArrayMappedTrie. empty(Equal<K> e, Hash<K> h)
Creates an empty trie.private static <K,V>
HashArrayMappedTrie<K,V>HashArrayMappedTrie. hamt(BitSet bs, Seq<Node<K,V>> s, Equal<K> e, Hash<K> h)
Static constructor for a HAMT instance.Constructors in fj.data.hamt with parameters of type Hash Constructor Description HashArrayMappedTrie(BitSet bs, Seq<Node<K,V>> s, Equal<K> e, Hash<K> h)
Creates an empty trie for the bitset, sequence of nodes, equal and hash.
-