Class HostHash

  • All Implemented Interfaces:
    java.util.function.LongUnaryOperator

    public class HostHash
    extends java.lang.Object
    implements java.util.function.LongUnaryOperator
    Provides a stable hash that is seeded by all the interface naming data on a given host. Three string properties from each known interface on the system are used to create a stable seed value. This is used to initialize the hash function each time before it is used to generate a hash from the input long. Apart from the per-system seeding, this hash function operates exactly the same as Hash
    • Constructor Summary

      Constructors 
      Constructor Description
      HostHash()  
      HostHash​(int seedMod)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long applyAsLong​(long value)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.LongUnaryOperator

        andThen, compose
    • Constructor Detail

      • HostHash

        public HostHash()
      • HostHash

        public HostHash​(int seedMod)
    • Method Detail

      • applyAsLong

        public long applyAsLong​(long value)
        Specified by:
        applyAsLong in interface java.util.function.LongUnaryOperator