Package net.openosrs.api
Class Quantity
- java.lang.Object
-
- net.openosrs.api.Quantity
-
public final class Quantity extends java.lang.ObjectAn exact positive amount or an explicit request for all available items.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Quantityall()booleanequals(java.lang.Object other)static Quantityexact(int amount)static QuantityfromLegacy(int amount)Deprecated.intgetAmount()inthashCode()booleanisAll()java.lang.StringtoString()
-
-
-
Method Detail
-
exact
public static Quantity exact(int amount)
-
all
public static Quantity all()
-
isAll
public boolean isAll()
-
getAmount
public int getAmount()
-
fromLegacy
@Deprecated public static Quantity fromLegacy(int amount)
Deprecated.Legacy MAX_VALUE means All; no negative value is a supported sentinel.
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-