public static class Fields.Field
extends java.lang.Object
A named list of string values.
The name is case-sensitive and there must be at least one value.
| Constructor and Description |
|---|
Field(java.lang.String name,
java.lang.String value) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Fields.Field that,
boolean caseSensitive) |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getName() |
java.lang.String |
getValue() |
java.lang.Integer |
getValueAsInt()
Attempts to convert the result of
getValue() to an integer,
returning it if the conversion is successful; returns null if the
result of getValue() is null. |
java.util.List<java.lang.String> |
getValues() |
int |
hashCode() |
boolean |
hasMultipleValues() |
java.lang.String |
toString() |
public boolean equals(Fields.Field that, boolean caseSensitive)
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String getName()
public java.lang.String getValue()
public java.lang.Integer getValueAsInt()
Attempts to convert the result of getValue() to an integer,
returning it if the conversion is successful; returns null if the
result of getValue() is null.
getValue() converted to an integer, or nulljava.lang.NumberFormatException - if the conversion failspublic java.util.List<java.lang.String> getValues()
public boolean hasMultipleValues()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 1995–2022 Webtide. All rights reserved.