Package org.antlr.v4.misc
Class MutableInt
- java.lang.Object
-
- java.lang.Number
-
- org.antlr.v4.misc.MutableInt
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<MutableInt>
public class MutableInt extends java.lang.Number implements java.lang.Comparable<MutableInt>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description int
v
-
Constructor Summary
Constructors Constructor Description MutableInt(int v)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(MutableInt o)
double
doubleValue()
boolean
equals(java.lang.Object o)
float
floatValue()
int
hashCode()
int
intValue()
long
longValue()
java.lang.String
toString()
-
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
compareTo
public int compareTo(MutableInt o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<MutableInt>
-
intValue
public int intValue()
- Specified by:
intValue
in classjava.lang.Number
-
longValue
public long longValue()
- Specified by:
longValue
in classjava.lang.Number
-
floatValue
public float floatValue()
- Specified by:
floatValue
in classjava.lang.Number
-
doubleValue
public double doubleValue()
- Specified by:
doubleValue
in classjava.lang.Number
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-