java.lang.Object
io.nosqlbench.virtdata.library.basics.shared.unary_int.HashInterval
All Implemented Interfaces:
java.util.function.IntUnaryOperator

public class HashInterval
extends java.lang.Object
implements java.util.function.IntUnaryOperator
  • Constructor Summary

    Constructors
    Constructor Description
    HashInterval​(int width)
    Create a hash interval based on a minimum value of 0 and a specified width.
    HashInterval​(int minIncl, int maxExcl)
    Create a hash interval
  • Method Summary

    Modifier and Type Method Description
    int applyAsInt​(int 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.IntUnaryOperator

    andThen, compose
  • Constructor Details

    • HashInterval

      public HashInterval​(int width)
      Create a hash interval based on a minimum value of 0 and a specified width.
      Parameters:
      width - The maximum value, which is excluded.
    • HashInterval

      public HashInterval​(int minIncl, int maxExcl)
      Create a hash interval
      Parameters:
      minIncl - The minimum value, which is included
      maxExcl - The maximum value, which is excluded
  • Method Details

    • applyAsInt

      public int applyAsInt​(int operand)
      Specified by:
      applyAsInt in interface java.util.function.IntUnaryOperator