Class TaggedUnion<Tag extends java.lang.Enum<Tag> & StringEnum,​Value>

java.lang.Object
org.opensearch.client.util.TaggedUnion<Tag,​Value>
Direct Known Subclasses:
AggregationContainer, ProcessorContainer, QueryContainer, ResponseItemContainer, SmoothingModelContainer, SuggestContainer

public class TaggedUnion<Tag extends java.lang.Enum<Tag> & StringEnum,​Value>
extends java.lang.Object
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected Tag tag  
    protected Value value  
  • Constructor Summary

    Constructors 
    Modifier Constructor Description
    protected TaggedUnion​(Tag tag, Value value)  
  • Method Summary

    Modifier and Type Method Description
    protected <V extends Value>
    V
    get​(Tag tag)  
    protected boolean is​(Tag tag)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait