java.lang.Object
java.lang.Record
org.aya.core.visitor.TermFolder.Usages
- All Implemented Interfaces:
Function<Term,,Integer> TermFolder<Integer>
- Enclosing interface:
TermFolder<R>
public static record TermFolder.Usages(@NotNull AnyVar var)
extends Record
implements TermFolder<Integer>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.aya.core.visitor.TermFolder
TermFolder.RefFinder, TermFolder.Usages -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.@NotNull Integerfinal inthashCode()Returns a hash code value for this object.@NotNull Integerinit()final StringtoString()Returns a string representation of this record class.@NotNull AnyVarvar()Returns the value of thevarrecord component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.aya.core.visitor.TermFolder
apply, fold, fold
-
Constructor Details
-
Usages
Creates an instance of aUsagesrecord class.- Parameters:
var- the value for thevarrecord component
-
-
Method Details
-
init
- Specified by:
initin interfaceTermFolder<Integer>
-
fold
- Specified by:
foldin interfaceTermFolder<Integer>
-
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). -
var
Returns the value of thevarrecord component.- Returns:
- the value of the
varrecord component
-