java.lang.Object
java.lang.Record
org.aya.cli.interactive.ReplContext.ModuleTrie
- Enclosing class:
ReplContext
public static record ReplContext.ModuleTrie(@NotNull kala.collection.immutable.ImmutableMap<String,ReplContext.ModuleTrie> children, boolean inhabited)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionModuleTrie(@NotNull kala.collection.immutable.ImmutableMap<String, ReplContext.ModuleTrie> children, boolean inhabited) Creates an instance of aModuleTrierecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull kala.collection.immutable.ImmutableMap<String, ReplContext.ModuleTrie> children()Returns the value of thechildrenrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theinhabitedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ModuleTrie
public ModuleTrie(@NotNull @NotNull kala.collection.immutable.ImmutableMap<String, ReplContext.ModuleTrie> children, boolean inhabited) Creates an instance of aModuleTrierecord class.- Parameters:
children- the value for thechildrenrecord componentinhabited- the value for theinhabitedrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
children
@NotNull public @NotNull kala.collection.immutable.ImmutableMap<String,ReplContext.ModuleTrie> children()Returns the value of thechildrenrecord component.- Returns:
- the value of the
childrenrecord component
-
inhabited
public boolean inhabited()Returns the value of theinhabitedrecord component.- Returns:
- the value of the
inhabitedrecord component
-