@BeanIgnore public class StringRange extends Object
Similar in concept to MediaRanges
except instead of media types (e.g.
An example of a type range is a value in an
Constructor and Description |
---|
StringRange(HeaderElement e)
Constructor.
|
StringRange(String value)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Returns
|
List<NameValuePair> |
getExtensions()
Returns the optional set of custom extensions defined for this type.
|
String |
getName()
Returns the name of this string range.
|
Float |
getQValue()
Returns the
|
int |
hashCode()
Returns a hash based on this instance's
|
int |
match(String name)
Performs a match of this string range against the specified name.
|
String |
toString() |
public StringRange(String value)
value
- The raw string range string.
public StringRange(HeaderElement e)
e
- The parsed string range element.public String getName()
This is the primary value minus the quality or other parameters.
public Float getQValue()
The quality value is a float between
If 'q' value doesn't make sense for the context (e.g. this range was extracted from a
public List<NameValuePair> getExtensions()
Values are lowercase and never
public boolean equals(Object o)
public int hashCode()
public int match(String name)
name
- The name being compared against.Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.