public class StringAttribute extends 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 |
rawToString()
Get a string representation of the internal constant value.
|
public StringAttribute(String value)
value
- String to encapsulatepublic String rawToString()
Constant
rawToString
in class Constant
public String getValue()
public int hashCode()
public boolean equals(Object oth)
public int compareTo(Term other)
Copyright © 2022 University of California, Santa Cruz. All rights reserved.