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