|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.vizzini.util.AbstractBean
public abstract class AbstractBean
Provides an abstract data bean. This class supplies useful methods like
equals(), hashCode(), and toString()
to speed development of subclasses.
| Field Summary | |
|---|---|
protected static Set |
IGNORE_PROPERTIES
Properties to ignore when executing toString(). |
| Constructor Summary | |
|---|---|
AbstractBean()
|
|
| Method Summary | |
|---|---|
protected void |
appendArray(StringBuffer sb,
String title,
Class componentType,
Object value,
String indent)
Append the given list items to the given string buffer, using the given title. |
protected void |
appendCollection(StringBuffer sb,
String title,
Collection collection,
String indent)
Append the given collection items to the given string buffer, using the given title. |
protected void |
appendList(StringBuffer sb,
String title,
List list,
String indent)
Append the given list items to the given string buffer, using the given title. |
protected void |
appendMap(StringBuffer sb,
String title,
Map map,
String indent)
Append the given map items to the given string buffer, using the given title. |
protected boolean |
compareBooleans(boolean boolean1,
boolean boolean2)
Compare the given booleans, returning true if they are equal, false otherwise. |
protected boolean |
compareObjects(Object object1,
Object object2)
Compare the given objects, returning true if they are equal, false otherwise. |
boolean |
equals(Object object)
Return true if the given object is equal to this. |
protected Set |
getIgnoreProperties()
Return the set of property names to ignore in the toString()
method. |
int |
hashCode()
Return a hash code. |
String |
toString()
Return a string representation of this object. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final Set IGNORE_PROPERTIES
toString().
| Constructor Detail |
|---|
public AbstractBean()
| Method Detail |
|---|
public boolean equals(Object object)
equals in class Objectobject - The object to compare equality against.
true if the objects are equal, otherwise
falsepublic int hashCode()
hashCode in class Objectpublic String toString()
IGNORE_PROPERTIES are ignored.
toString in class Object
protected void appendArray(StringBuffer sb,
String title,
Class componentType,
Object value,
String indent)
sb - String buffer.title - List title.componentType - Array component type.value - Value.indent - Indent
protected void appendCollection(StringBuffer sb,
String title,
Collection collection,
String indent)
sb - String buffer.title - Collection title.collection - Collection
protected void appendList(StringBuffer sb,
String title,
List list,
String indent)
sb - String buffer.title - List title.list - List.
protected void appendMap(StringBuffer sb,
String title,
Map map,
String indent)
sb - String buffer.title - Map title.map - Map.
protected boolean compareBooleans(boolean boolean1,
boolean boolean2)
boolean1 - boolean2 -
protected boolean compareObjects(Object object1,
Object object2)
object1 - object2 -
protected Set getIgnoreProperties()
toString()
method.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| Copyright © 2007 Vizzini.org. All Rights Reserved. | 2007.12.25.03.00.02 |