Class HashRange

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

    public class HashRange
    extends java.lang.Object
    implements java.util.function.LongUnaryOperator
    Return a value within a range, pseudo-randomly. This is equivalent to returning a value with in range between 0 and some maximum value, but with a minimum value added.
    • Constructor Summary

      Constructors 
      Constructor Description
      HashRange​(long width)  
      HashRange​(long minValue, long maxValue)  
    • Method Summary

      Modifier and Type Method Description
      long applyAsLong​(long operand)  
      • 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

      • HashRange

        public HashRange​(long width)
      • HashRange

        public HashRange​(long minValue,
                         long maxValue)
    • Method Detail

      • applyAsLong

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