Package rife.engine
Record Class UrlBuilder.Segments
java.lang.Object
java.lang.Record
rife.engine.UrlBuilder.Segments
- Record Components:
path
- the URL pathparameters
- the URL parametersfragment
- the URL fragment
- Enclosing class:
- UrlBuilder
public static record UrlBuilder.Segments(String path, Map<String,String[]> parameters, String fragment)
extends Record
The segments that are generated by the URL builder.
- Since:
- 1.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
final boolean
Indicates whether some other object is "equal to" this one.fragment()
Returns the value of thefragment
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of theparameters
record component.path()
Returns the value of thepath
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Segments
Creates an instance of aSegments
record class.- Parameters:
path
- the value for thepath
record componentparameters
- the value for theparameters
record componentfragment
- the value for thefragment
record component
-
-
Method Details
-
appendQueryParameters
-
appendFormInputParameters
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
path
Returns the value of thepath
record component.- Returns:
- the value of the
path
record component
-
parameters
Returns the value of theparameters
record component.- Returns:
- the value of the
parameters
record component
-
fragment
Returns the value of thefragment
record component.- Returns:
- the value of the
fragment
record component
-