Class NonRecordContainer<T>

java.lang.Object
io.apicurio.registry.serde.avro.NonRecordContainer<T>
All Implemented Interfaces:
org.apache.avro.generic.GenericContainer

public class NonRecordContainer<T> extends Object implements org.apache.avro.generic.GenericContainer
Wrapper for all non-record types that includes the schema for the data.
  • Constructor Details

    • NonRecordContainer

      public NonRecordContainer(org.apache.avro.Schema schema, T value)
  • Method Details

    • getSchema

      public org.apache.avro.Schema getSchema()
      Specified by:
      getSchema in interface org.apache.avro.generic.GenericContainer
    • getValue

      public Object getValue()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object