Class WeightedObject<T>
- java.lang.Object
-
- org.spongepowered.api.util.weighted.TableEntry<T>
-
- org.spongepowered.api.util.weighted.WeightedObject<T>
-
- Type Parameters:
T- The entry type
- Direct Known Subclasses:
WeightedSerializableObject
public class WeightedObject<T> extends TableEntry<T>
An entry which contains an object.
-
-
Constructor Summary
Constructors Constructor Description WeightedObject(T obj, double weight)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Tget()Gets the entry contained in this entry.inthashCode()StringtoString()-
Methods inherited from class org.spongepowered.api.util.weighted.TableEntry
weight
-
-