org.apache.avro.generic
Class GenericData.EnumSymbol
java.lang.Object
org.apache.avro.generic.GenericData.EnumSymbol
- All Implemented Interfaces:
- GenericContainer, GenericEnumSymbol
- Enclosing class:
- GenericData
public static class GenericData.EnumSymbol
- extends Object
- implements GenericEnumSymbol
Default implementation of GenericEnumSymbol
.
GenericData.EnumSymbol
public GenericData.EnumSymbol(Schema schema,
String symbol)
getSchema
public Schema getSchema()
- Description copied from interface:
GenericContainer
- The schema of this instance.
- Specified by:
getSchema
in interface GenericContainer
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Description copied from interface:
GenericEnumSymbol
- Return the symbol.
- Specified by:
toString
in interface GenericEnumSymbol
- Overrides:
toString
in class Object
Copyright © 2011 The Apache Software Foundation. All Rights Reserved.