Class NodeSelector

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

    public class NodeSelector
    extends java.lang.Object
    implements com.marcnuri.yakc.model.Model
    A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms.
    • Constructor Detail

      • NodeSelector

        public NodeSelector​(@NonNull
                            @NonNull java.util.List<NodeSelectorTerm> nodeSelectorTerms)
      • NodeSelector

        public NodeSelector()
    • Method Detail

      • getNodeSelectorTerms

        @NonNull
        public @NonNull java.util.List<NodeSelectorTerm> getNodeSelectorTerms()
        Required. A list of node selector terms. The terms are ORed.
      • setNodeSelectorTerms

        public void setNodeSelectorTerms​(@NonNull
                                         @NonNull java.util.List<NodeSelectorTerm> nodeSelectorTerms)
        Required. A list of node selector terms. The terms are ORed.
      • 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