Package org.apache.juneau.rest.server
Record Class RestContext.ContextKind.Child
java.lang.Object
java.lang.Record
org.apache.juneau.rest.server.RestContext.ContextKind.Child
- Record Components:
def- The normalized declaration that produced this sub-context — carries the host-declared seed payload.
- All Implemented Interfaces:
RestContext.ContextKind
- Enclosing interface:
- RestContext.ContextKind
public static record RestContext.ContextKind.Child(RestContext.ResolvedChild def)
extends Record
implements RestContext.ContextKind
A routed child resource (mounted via
Rest.children()/Rest.childrenDefs()); isolated
resolution, with an optional host-seeded @Child payload injected at the least-derived slot of
its own annotation chain (see the class javadoc above).-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.juneau.rest.server.RestContext.ContextKind
RestContext.ContextKind.Child, RestContext.ContextKind.Mixin, RestContext.ContextKind.Root -
Field Summary
Fields inherited from interface org.apache.juneau.rest.server.RestContext.ContextKind
ROOT -
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aChildrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondef()Returns the value of thedefrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Child
Creates an instance of aChildrecord class.- Parameters:
def- the value for thedefrecord component
-
-
Method Details
-
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
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). -
def
Returns the value of thedefrecord component.- Returns:
- the value of the
defrecord component
-