Class NodePair

java.lang.Object
com.kamikazejam.kamicommon.yaml.util.NodePair

public final class NodePair extends Object
Was a record. This module targets Java 8 so that a 1.8.x server can load it, and records are Java 16, so the accessors, equality and toString are spelled out here instead. The accessor names keep the record's shape (key(), not getKey()), so callers are unchanged.
  • Constructor Details

    • NodePair

      public NodePair(String key, org.yaml.snakeyaml.nodes.ScalarNode scalarNode, boolean terminatesInValue)
  • Method Details

    • key

      public String key()
    • scalarNode

      public org.yaml.snakeyaml.nodes.ScalarNode scalarNode()
    • terminatesInValue

      public boolean terminatesInValue()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object