Class FieldsV1

  • All Implemented Interfaces:
    com.marcnuri.yakc.model.Model

    public class FieldsV1
    extends java.lang.Object
    implements com.marcnuri.yakc.model.Model
    FieldsV1 stores a set of fields in a data structure like a Trie, in JSON format.


    Each key is either a '.' representing the field itself, and will always map to an empty set, or a string representing a sub-field or item. The string will follow one of these four formats: 'f:<name>', where <name> is the name of a field in a struct, or key in a map 'v:<value>', where <value> is the exact json formatted value of a list item 'i:<index>', where <index> is position of a item in a list 'k:<keys>', where <keys> is a map of a list item's key fields to their unique values If a key maps to an empty Fields value, the field that key represents is part of the set.


    The exact format is defined in sigs.k8s.io/structured-merge-diff

    • Constructor Detail

      • FieldsV1

        public FieldsV1()
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object