public class DoubleAttribute extends Object implements Attribute
Attribute
that encapsulates a Double.Constructor and Description |
---|
DoubleAttribute(Double value)
Constructs a Double attribute from a Double
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Term other) |
boolean |
equals(Object oth)
A DoubleAttribute is equal to another Object if that Object is a DoubleAttribute
and their values are equal.
|
Double |
getValue() |
int |
hashCode() |
String |
toString() |
public DoubleAttribute(Double value)
value
- Double to encapsulatepublic String toString()
public Double 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.