Record Class PublicOrigin
java.lang.Object
java.lang.Record
io.leandev.appfuse.web.url.PublicOrigin
-
Constructor Summary
ConstructorsConstructorDescriptionPublicOrigin(String scheme, String authority) Creates an instance of aPublicOriginrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theauthorityrecord component.static StringcanonicalAuthority(String value, String scheme) authority 不接受 URL、userinfo、wildcard、空 port 或歧義分隔字元。final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static PublicOriginscheme()Returns the value of theschemerecord component.final StringtoString()Returns a string representation of this record class.value()
-
Constructor Details
-
PublicOrigin
-
-
Method Details
-
of
-
canonicalAuthority
-
value
-
toString
-
hashCode
-
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). -
scheme
Returns the value of theschemerecord component.- Returns:
- the value of the
schemerecord component
-
authority
Returns the value of theauthorityrecord component.- Returns:
- the value of the
authorityrecord component
-