@Immutable public class URLParameter extends Object implements Serializable
| Constructor and Description |
|---|
URLParameter(String sName) |
URLParameter(String sName,
String sValue) |
| Modifier and Type | Method and Description |
|---|---|
void |
appendTo(StringBuilder aSB,
IEncoder<String,String> aQueryParameterEncoder) |
boolean |
equals(Object o) |
String |
getName() |
String |
getValue() |
int |
hashCode() |
boolean |
hasName(String sName)
Check if this parameter has the specified name.
|
boolean |
hasValue() |
boolean |
hasValue(String sValue)
Check if this parameter has the specified value.
|
String |
toString() |
@Nonnull @Nonempty public String getName()
null nor empty.public boolean hasName(@Nullable String sName)
sName - The name to check. May be null.true if name matches, false otherwise.@Nonnull public String getValue()
null but maybe
empty.public boolean hasValue()
true if this parameter has a value, false
otherwise.public boolean hasValue(@Nullable String sValue)
sValue - The value to check. May be null.true if value matches, false otherwise.public void appendTo(@Nonnull StringBuilder aSB, @Nullable IEncoder<String,String> aQueryParameterEncoder)
Copyright © 2014–2019 Philip Helger. All rights reserved.