public abstract class Feature extends Object
Modifier and Type | Field and Description |
---|---|
protected static boolean |
ascii
Are the feature names encoded in ASCII?
|
protected static boolean |
keepString
Should the feature name be retained in case the encoding is ASCII?
|
Modifier | Constructor and Description |
---|---|
protected |
Feature(byte[] bytes) |
|
Feature(String name) |
Modifier and Type | Method and Description |
---|---|
Feature |
conjoinWith(Feature f) |
String |
getName() |
protected int |
getNameHashCode() |
abstract float |
getValue() |
Feature |
prefixWith(String s) |
static void |
resetKeepString() |
static void |
resetUseAscii() |
static void |
setKeepString() |
static void |
setUseAscii() |
protected static boolean ascii
protected static boolean keepString
public Feature(String name)
protected Feature(byte[] bytes)
public static void setUseAscii()
public static void resetUseAscii()
public static void setKeepString()
public static void resetKeepString()
public abstract float getValue()
public String getName()
protected int getNameHashCode()
Copyright © 2017. All rights reserved.