Class FieldsV1
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.apimachinery.pkg.apis.meta.v1.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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FieldsV1.Builder
-
Constructor Summary
Constructors Constructor Description FieldsV1()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FieldsV1.Builder
builder()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
int
hashCode()
FieldsV1.Builder
toBuilder()
java.lang.String
toString()
-
-
-
Method Detail
-
builder
public static FieldsV1.Builder builder()
-
toBuilder
public FieldsV1.Builder toBuilder()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-