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 boolean
equals(Object o)
T
get()
Gets the entry contained in this entry.int
hashCode()
String
toString()
-
Methods inherited from class org.spongepowered.api.util.weighted.TableEntry
weight
-
-