Class WeightedLongs

  • All Implemented Interfaces:
    java.util.function.LongFunction<java.lang.Long>

    public class WeightedLongs
    extends java.lang.Object
    implements java.util.function.LongFunction<java.lang.Long>
    • Constructor Summary

      Constructors 
      Constructor Description
      WeightedLongs​(java.lang.String valuesAndWeights)  
    • Method Summary

      Modifier and Type Method Description
      java.lang.Long apply​(long value)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WeightedLongs

        public WeightedLongs​(java.lang.String valuesAndWeights)
    • Method Detail

      • apply

        public java.lang.Long apply​(long value)
        Specified by:
        apply in interface java.util.function.LongFunction<java.lang.Long>