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

java.lang.Object
co.elastic.clients.util.TaggedUnion2<Tag,​Value>

public class TaggedUnion2<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 TaggedUnion2​(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
  • Field Details

    • tag

      protected final Tag extends java.lang.Enum<Tag> & StringEnum tag
    • value

      protected final Value value
  • Constructor Details

    • TaggedUnion2

      protected TaggedUnion2​(Tag tag, Value value)
  • Method Details

    • is

      protected boolean is​(Tag tag)
    • get

      protected <V extends Value> V get​(Tag tag)