Record Class ModelBridges.Bridge

java.lang.Object
java.lang.Record
network.ike.foundation.ike.model.ModelBridges.Bridge
Record Components:
model - the model's name
className - the class's local name
circumstanceKind - the circumstance kind a statement must hold
disposition - the disposition a statement must carry, empty when the class fixes none
relation - the relation kind the bridge claims
Enclosing class:
ModelBridges

public static record ModelBridges.Bridge(String model, String className, dev.ikm.tinkar.terms.ConceptFacade circumstanceKind, Optional<dev.ikm.tinkar.terms.ConceptFacade> disposition, dev.ikm.tinkar.terms.ConceptFacade relation) extends Record
What a retrievable class stands for.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Bridge(String model, String className, dev.ikm.tinkar.terms.ConceptFacade circumstanceKind, Optional<dev.ikm.tinkar.terms.ConceptFacade> disposition, dev.ikm.tinkar.terms.ConceptFacade relation)
    Creates an instance of a Bridge record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    dev.ikm.tinkar.terms.ConceptFacade
    Returns the value of the circumstanceKind record component.
    Returns the value of the className record component.
    Optional<dev.ikm.tinkar.terms.ConceptFacade>
    Returns the value of the disposition record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    Returns the value of the model record component.
    dev.ikm.tinkar.terms.ConceptFacade
    Returns the value of the relation record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Bridge

      public Bridge(String model, String className, dev.ikm.tinkar.terms.ConceptFacade circumstanceKind, Optional<dev.ikm.tinkar.terms.ConceptFacade> disposition, dev.ikm.tinkar.terms.ConceptFacade relation)
      Creates an instance of a Bridge record class.
      Parameters:
      model - the value for the model record component
      className - the value for the className record component
      circumstanceKind - the value for the circumstanceKind record component
      disposition - the value for the disposition record component
      relation - the value for the relation record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • model

      public String model()
      Returns the value of the model record component.
      Returns:
      the value of the model record component
    • className

      public String className()
      Returns the value of the className record component.
      Returns:
      the value of the className record component
    • circumstanceKind

      public dev.ikm.tinkar.terms.ConceptFacade circumstanceKind()
      Returns the value of the circumstanceKind record component.
      Returns:
      the value of the circumstanceKind record component
    • disposition

      public Optional<dev.ikm.tinkar.terms.ConceptFacade> disposition()
      Returns the value of the disposition record component.
      Returns:
      the value of the disposition record component
    • relation

      public dev.ikm.tinkar.terms.ConceptFacade relation()
      Returns the value of the relation record component.
      Returns:
      the value of the relation record component