FileDocCategorySizeDatePackage
CompositeElement.javaAPI DocHibernate 3.2.51038Sat May 21 09:22:16 BST 2005org.hibernate.test.legacy

CompositeElement

public class CompositeElement extends Object implements Comparable, Serializable

Fields Summary
private String
foo
private String
bar
Constructors Summary
Methods Summary
public intcompareTo(java.lang.Object o)

see
java.lang.Comparable#compareTo(java.lang.Object)

		return ( (CompositeElement) o ).foo.compareTo(foo);
	
public booleanequals(java.lang.Object that)

		CompositeElement ce = (CompositeElement) that;
		return ce.bar.equals(bar) && ce.foo.equals(foo);
	
public java.lang.StringgetBar()
Returns the bar.

return
String

		return bar;
	
public java.lang.StringgetFoo()
Returns the foo.

return
String

		return foo;
	
public inthashCode()

		return foo.hashCode() + bar.hashCode();
	
public voidsetBar(java.lang.String bar)
Sets the bar.

param
bar The bar to set

		this.bar = bar;
	
public voidsetFoo(java.lang.String foo)
Sets the foo.

param
foo The foo to set

		this.foo = foo;