public final class CustomSearchFilterAttribute
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
attributeName |
private java.util.Map<java.lang.Integer,java.lang.Integer> |
attributeValues |
private java.lang.String |
fieldName |
private java.util.Locale |
lang |
private CustomSearchFilterAttributeType |
type |
Constructor and Description |
---|
CustomSearchFilterAttribute(CustomSearchFilterAttributeType type,
java.util.Locale lang,
java.lang.String attributeName) |
Modifier and Type | Method and Description |
---|---|
void |
addAttributeValue(java.lang.String value,
int position) |
private int |
averageNewAndOldPosition(int pos1,
int pos2) |
private int |
calculateNewPosition(int pos1,
int pos2) |
static java.lang.String |
composeFieldName(CustomSearchFilterAttributeType attributeType,
java.util.Locale lang,
java.lang.String attributeName) |
private int |
doGetValuePosition(int keyCode) |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getFieldName() |
java.util.Locale |
getLang() |
java.lang.String |
getName() |
CustomSearchFilterAttributeType |
getType() |
int |
getValuePosition(java.lang.String value) |
int |
hashCode() |
boolean |
isBoolean() |
boolean |
isNumeric() |
private final CustomSearchFilterAttributeType type
private final java.util.Locale lang
private final java.lang.String attributeName
private final java.lang.String fieldName
private java.util.Map<java.lang.Integer,java.lang.Integer> attributeValues
public CustomSearchFilterAttribute(CustomSearchFilterAttributeType type, java.util.Locale lang, java.lang.String attributeName)
public java.lang.String getName()
public java.lang.String getFieldName()
public java.util.Locale getLang()
public boolean isNumeric()
public boolean isBoolean()
public CustomSearchFilterAttributeType getType()
public static java.lang.String composeFieldName(CustomSearchFilterAttributeType attributeType, java.util.Locale lang, java.lang.String attributeName)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public void addAttributeValue(java.lang.String value, int position)
private int calculateNewPosition(int pos1, int pos2)
private int averageNewAndOldPosition(int pos1, int pos2)
public int getValuePosition(java.lang.String value)
private int doGetValuePosition(int keyCode)