Class WeightedObject<T>

    • Constructor Detail

      • WeightedObject

        public WeightedObject​(T obj,
                              double weight)
        Creates a new WeightedObject of the provided object and weight.
        Parameters:
        obj - The object
        weight - The weight of the object
    • Method Detail

      • get

        public T get()
        Gets the entry contained in this entry.
        Returns:
        The object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object