Interface Weighted<E>

Type Parameters:
E - The type of value
All Known Implementing Classes:
WeightedEntry

public interface Weighted<E>
An interface for use in the WeightedChance class
Used for custom classes that require a weighted chance for random selection
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the value
    double
    Gets the weight
  • Method Details

    • value

      E value()
      Gets the value
      Returns:
      The value
    • weight

      double weight()
      Gets the weight
      Returns:
      The weight