org.codehaus.jparsec.examples.common
Class ValueObject

java.lang.Object
  extended by org.codehaus.jparsec.examples.common.ValueObject
Direct Known Subclasses:
AliasedRelation, AltRule, Annotation, Annotation.Element, AnnotationDef, ArrayInitializer, ArraySubscriptExpression, ArrayTypeLiteral, AssertStatement, BetweenExpression, BinaryExpression, BinaryExpression, BinaryRelationalExpression, BlockStatement, BooleanLiteral, BreakStatement, CastExpression, CharLiteral, ClassDef, ClassInitializerDef, ClassLiteral, ConditionalExpression, ConstructorDef, ContinueStatement, CrossJoinRelation, DecimalPointNumberLiteral, DefBody, DoWhileStatement, EnumDef, ExpressionListStatement, ExpressionStatement, FieldDef, ForeachStatement, ForStatement, FullCaseExpression, FunctionExpression, GroupBy, Identifier, IfStatement, Import, InstanceOfExpression, IntegerLiteral, InterfaceDef, JoinRelation, LabelStatement, LikeExpression, LiteralRule, LowerBoundWildcard, MethodCallExpression, MethodDef, NestedDef, NewArrayExpression, NewExpression, NumberExpression, OrderBy, OrderBy.Item, ParameterDef, PostfixUnaryExpression, PrefixUnaryExpression, Program, Projection, QualifiedExpression, QualifiedName, QualifiedName, QualifiedNameExpression, QuantifiedRule, ReturnStatement, RuleDef, RuleReference, ScientificNumberLiteral, Select, SequentialRule, SimpleCaseExpression, SimpleTypeLiteral, StringExpression, StringLiteral, SuperCallStatement, SuperExpression, SwitchStatement, SynchronizedBlockStatement, TableRelation, ThisCallStatement, ThisExpression, ThrowStatement, TryStatement, TryStatement.CatchBlock, TupleExpression, TypeParameterDef, UnaryExpression, UnaryRelationalExpression, UnionRelation, UpperBoundWildcard, VarStatement, VarStatement.Var, WhileStatement, WildcardExpression

public abstract class ValueObject
extends Object

Base class that implements Object.equals(Object), Object.hashCode() and Object#toString() on final fields.

Author:
Ben Yu

Constructor Summary
ValueObject()
           
 
Method Summary
 boolean equals(Object obj)
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ValueObject

public ValueObject()
Method Detail

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2014. All rights reserved.