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 SummaryConstructors Constructor Description WeightedObject(T obj, double weight)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)Tget()Gets the entry contained in this entry.inthashCode()java.lang.StringtoString()- 
Methods inherited from class org.spongepowered.api.util.weighted.TableEntryweight
 
- 
 
- 
- 
- 
Constructor Detail- 
WeightedObjectpublic WeightedObject(T obj, double weight) - Parameters:
- obj- The object
- weight- The weight of the object
 
 
- 
 - 
Method Detail- 
getpublic T get() Gets the entry contained in this entry.- Returns:
- The object
 
 - 
equalspublic boolean equals(java.lang.Object o) - Overrides:
- equalsin class- java.lang.Object
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-