Package hydra.yaml.model
Class Scalar.Int
- java.lang.Object
-
- hydra.yaml.model.Scalar
-
- hydra.yaml.model.Scalar.Int
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Scalar>
- Enclosing class:
- Scalar
public static final class Scalar.Int extends Scalar implements java.io.Serializable
Represents arbitrary sized finite mathematical integers- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hydra.yaml.model.Scalar
Scalar.Bool, Scalar.Decimal, Scalar.Float_, Scalar.Int, Scalar.Null, Scalar.PartialVisitor<R>, Scalar.Str, Scalar.Visitor<R>
-
-
Constructor Summary
Constructors Constructor Description Int(java.math.BigInteger value)Constructs an immutableScalar.Int.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R> Raccept(Scalar.Visitor<R> visitor)Dispatch tovisitor.intcompareTo(Scalar other)booleanequals(java.lang.Object other)inthashCode()
-
-
-
Constructor Detail
-
Int
public Int(java.math.BigInteger value)
Constructs an immutableScalar.Int.
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
compareTo
public int compareTo(Scalar other)
- Specified by:
compareToin interfacejava.lang.Comparable<Scalar>
-
accept
public <R> R accept(Scalar.Visitor<R> visitor)
Dispatch tovisitor.
-
-