Record Class ConceptRegistry.ConceptHit
java.lang.Object
java.lang.Record
org.ek9lang.assist.ConceptRegistry.ConceptHit
- Enclosing class:
ConceptRegistry
-
Constructor Summary
ConstructorsConstructorDescriptionConceptHit(String concept, int ring, double weight) Creates an instance of aConceptHitrecord class. -
Method Summary
Modifier and TypeMethodDescriptionconcept()Returns the value of theconceptrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intring()Returns the value of theringrecord component.final StringtoString()Returns a string representation of this record class.doubleweight()Returns the value of theweightrecord component.
-
Constructor Details
-
ConceptHit
Creates an instance of aConceptHitrecord class.- Parameters:
concept- the value for theconceptrecord componentring- the value for theringrecord componentweight- the value for theweightrecord 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 thecomparemethod from their corresponding wrapper classes. -
concept
Returns the value of theconceptrecord component.- Returns:
- the value of the
conceptrecord component
-
ring
public int ring()Returns the value of theringrecord component.- Returns:
- the value of the
ringrecord component
-
weight
public double weight()Returns the value of theweightrecord component.- Returns:
- the value of the
weightrecord component
-