Interface ObjectParser.NamedObjectParser<T,​Context>

  • Enclosing class:
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    public static interface ObjectParser.NamedObjectParser<T,​Context>
    Functional interface for instantiating and parsing named objects. See ObjectParserTests#NamedObject for the canonical way to implement this for objects that themselves have a parser.
    • Method Summary

      Modifier and Type Method Description
      T parse​(XContentParser p, Context c, java.lang.String name)  
    • Method Detail

      • parse

        T parse​(XContentParser p,
                Context c,
                java.lang.String name)