public class IntegerAttribute extends Attribute
Attribute
that encapsulates an Integer.Constructor and Description |
---|
IntegerAttribute(Integer value)
Constructs an Integer attribute from an Integer
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Term other) |
boolean |
equals(Object oth)
An IntegerAttribute is equal to another Object if that Object is an IntegerAttribute
and their values are equal.
|
Integer |
getValue() |
int |
hashCode() |
String |
rawToString()
Get a string representation of the internal constant value.
|
public IntegerAttribute(Integer value)
value
- Integer to encapsulatepublic String rawToString()
Constant
rawToString
in class Constant
public Integer getValue()
public int hashCode()
public boolean equals(Object oth)
public int compareTo(Term other)
Copyright © 2022 University of California, Santa Cruz. All rights reserved.