APIdia Launch Partner
Top Inners
com.sun.tools.jnativescan

pack-priv sealed Interface RestrictedUse

permits RestrictedMethodRefs, NativeMethodDecl
Known Direct Implementers
com.sun.tools.jnativescan.RestrictedUse.RestrictedMethodRefs, com.sun.tools.jnativescan.RestrictedUse.NativeMethodDecl
Imports
java.util.SortedSet

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static record
public static record
com.sun.tools.jnativescan back to summary

public final Record RestrictedUse.NativeMethodDecl

extends Record
implements RestrictedUse
Class Inheritance
All Implemented Interfaces
com.sun.tools.jnativescan.RestrictedUse
Record Components
decl:MethodRef 

Field Summary

Modifier and TypeField and Description
private final MethodRef
decl

Record Component accessed by decl().

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public MethodRef
decl()

Record Component getter of decl.

public final boolean
equals(Object o)

Implements abstract java.lang.Record.equals.

Indicates whether some other object is "equal to" this one.

public final int
hashCode()

Implements abstract java.lang.Record.hashCode.

Returns a hash code value for the record.

public final String
toString()

Implements abstract java.lang.Record.toString.

Returns a string representation of the record.

Field Detail

declback to summary
private final MethodRef decl

Record Component accessed by decl().

Constructor Detail

NativeMethodDeclback to summary
public NativeMethodDecl(MethodRef decl)

Method Detail

declback to summary
public MethodRef decl()

Record Component getter of decl.

equalsback to summary
public final boolean equals(Object o)

Implements abstract java.lang.Record.equals.

Doc from java.lang.Record.equals.

Indicates whether some other object is "equal to" this one. In addition to the general contract of Object.equals, record classes must further obey the invariant that when a record instance is "copied" by passing the result of the record component accessor methods to the canonical constructor, as follows:

    R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
hashCodeback to summary
public final int hashCode()

Implements abstract java.lang.Record.hashCode.

Doc from java.lang.Record.hashCode.

Returns a hash code value for the record. Obeys the general contract of Object.hashCode. For records, hashing behavior is constrained by the refined contract of Record.equals, so that any two records created from the same components must have the same hash code.

toStringback to summary
public final String toString()

Implements abstract java.lang.Record.toString.

Doc from java.lang.Record.toString.

Returns a string representation of the record. In accordance with the general contract of Object#toString(), the toString method returns a string that "textually represents" this record. The result should be a concise but informative representation that is easy for a person to read.

In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves.

com.sun.tools.jnativescan back to summary

public final Record RestrictedUse.RestrictedMethodRefs

extends Record
implements RestrictedUse
Class Inheritance
All Implemented Interfaces
com.sun.tools.jnativescan.RestrictedUse
Record Components
referent:MethodRef 
referees:SortedSet<MethodRef> 

Field Summary

Modifier and TypeField and Description
private final SortedSet<MethodRef>
referees

Record Component accessed by referees().

private final MethodRef
referent

Record Component accessed by referent().

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public final boolean
equals(Object o)

Implements abstract java.lang.Record.equals.

Indicates whether some other object is "equal to" this one.

public final int
hashCode()

Implements abstract java.lang.Record.hashCode.

Returns a hash code value for the record.

public SortedSet<MethodRef>
referees()

Record Component getter of referees.

public MethodRef
referent()

Record Component getter of referent.

public final String
toString()

Implements abstract java.lang.Record.toString.

Returns a string representation of the record.

Field Detail

refereesback to summary
private final SortedSet<MethodRef> referees

Record Component accessed by referees().

referentback to summary
private final MethodRef referent

Record Component accessed by referent().

Constructor Detail

RestrictedMethodRefsback to summary
public RestrictedMethodRefs(MethodRef referent, SortedSet<MethodRef> referees)

Method Detail

equalsback to summary
public final boolean equals(Object o)

Implements abstract java.lang.Record.equals.

Doc from java.lang.Record.equals.

Indicates whether some other object is "equal to" this one. In addition to the general contract of Object.equals, record classes must further obey the invariant that when a record instance is "copied" by passing the result of the record component accessor methods to the canonical constructor, as follows:

    R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
hashCodeback to summary
public final int hashCode()

Implements abstract java.lang.Record.hashCode.

Doc from java.lang.Record.hashCode.

Returns a hash code value for the record. Obeys the general contract of Object.hashCode. For records, hashing behavior is constrained by the refined contract of Record.equals, so that any two records created from the same components must have the same hash code.

refereesback to summary
public SortedSet<MethodRef> referees()

Record Component getter of referees.

referentback to summary
public MethodRef referent()

Record Component getter of referent.

toStringback to summary
public final String toString()

Implements abstract java.lang.Record.toString.

Doc from java.lang.Record.toString.

Returns a string representation of the record. In accordance with the general contract of Object#toString(), the toString method returns a string that "textually represents" this record. The result should be a concise but informative representation that is easy for a person to read.

In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves.