public class IntegerAttribute extends Object implements 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 |
toString() |
public IntegerAttribute(Integer value)
value
- Integer to encapsulatepublic String toString()
public Integer getValue()
public int hashCode()
public boolean equals(Object oth)
public int compareTo(Term other)
compareTo
in interface Comparable<Term>
Copyright © 2018 University of California, Santa Cruz. All rights reserved.