Class Fields.Field
java.lang.Object
org.eclipse.jetty.util.Fields.Field
- Enclosing class:
 Fields
A named list of string values.
The name is case-sensitive and there must be at least one value.
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionbooleangetName()getValue()Attempts to convert the result ofgetValue()to an integer, returning it if the conversion is successful; returns null if the result ofgetValue()is null.inthashCode()booleantoString() 
- 
Constructor Details
- 
Field
 - 
Field
 
 - 
 - 
Method Details
- 
equals
 - 
hashCode
 - 
getName
- Returns:
 - the field's name
 
 - 
getValue
- Returns:
 - the first field's value
 
 - 
getValueAsInt
Attempts to convert the result of
getValue()to an integer, returning it if the conversion is successful; returns null if the result ofgetValue()is null.- Returns:
 - the result of 
getValue()converted to an integer, or null - Throws:
 NumberFormatException- if the conversion fails
 - 
getValues
 - 
hasMultipleValues
public boolean hasMultipleValues()- Returns:
 - whether the field has multiple values
 
 - 
toString
 
 -