public class Feature
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
featureType |
protected byte |
level |
protected java.lang.String |
name |
static java.lang.String |
TYPE |
Constructor and Description |
---|
Feature() |
Feature(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
boolean |
compareNameLevelType(Feature feature) |
boolean |
equals(java.lang.Object o) |
int |
getCost() |
java.lang.String |
getFeatureName() |
java.lang.String |
getFeatureType() |
byte |
getLevel() |
int |
hashCode() |
boolean |
same(Feature feature)
checks that feature is not equal, used to track duplicates
comparison is between feature type and feature name
|
void |
setCost(int cost) |
void |
setFeatureName(java.lang.String name) |
void |
setFeatureType(java.lang.String type) |
void |
setLevel(byte level) |
java.lang.String |
toString() |
protected java.lang.String name
public static final java.lang.String TYPE
protected java.lang.String featureType
protected byte level
public int getCost()
public void setCost(int cost)
public boolean compareNameLevelType(Feature feature)
public boolean same(Feature feature)
feature
- public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public byte getLevel()
public void setLevel(byte level)
public java.lang.String getFeatureType()
public void setFeatureType(java.lang.String type)
public java.lang.String getFeatureName()
public void setFeatureName(java.lang.String name)
public java.lang.String toString()
toString
in class java.lang.Object