org.apache.avro.generic
Class GenericData.EnumSymbol

java.lang.Object
  extended by 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.


Constructor Summary
GenericData.EnumSymbol(Schema schema, String symbol)
           
 
Method Summary
 boolean equals(Object o)
           
 Schema getSchema()
          The schema of this instance.
 int hashCode()
           
 String toString()
          Return the symbol.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GenericData.EnumSymbol

public GenericData.EnumSymbol(Schema schema,
                              String symbol)
Method Detail

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.