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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidfinal booleanIndicates whether some other object is "equal to" this one.fragment()Returns the value of thefragmentrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theparametersrecord component.path()Returns the value of thepathrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Segments
Creates an instance of aSegmentsrecord class.- Parameters:
path- the value for thepathrecord componentparameters- the value for theparametersrecord componentfragment- the value for thefragmentrecord 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 thepathrecord component.- Returns:
- the value of the
pathrecord component
-
parameters
Returns the value of theparametersrecord component.- Returns:
- the value of the
parametersrecord component
-
fragment
Returns the value of thefragmentrecord component.- Returns:
- the value of the
fragmentrecord component
-