/**************************************************************************** * File : TestVoFile.java * Author : Meier Patrick * Date : 27.4.2005 * Last change : $Date: 2005/04/27 05:14:33 $ / $Author: mepux $ * Version : $Revision: 1.2 $ * * Copyright (C) 2005 by Meier Patrick * **************************************************************************** * This file is part of the jpTools library * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * **************************************************************************** * $Id: TestVoFile.java,v 1.2 2005/04/27 05:14:33 mepux Exp $ **************************************************************************** */ import java.io.Serializable; /** *

The value object TestVoFile.

* *

* This file is generated by the jptools generator framework version 0.99.13.
* Homepage: jptools.sourceforge.net
*
* * @author Meier Patrick * @version $Revision: 1.2 $ */ public class TestVoFile implements Serializable { private String myString; private int member; private double value; /** *

Constructor for TestVoFile.

*/ public TestVoFile() { super(); } /** *

Gets the myString.

* * @return returns the myString */ public String getMyString() { return myString; } /** *

Sets the myString.

* * @param myString sets the myString */ public void setMyString( String myString ) { this.myString = myString; } /** *

Gets the member.

* * @return returns the member */ public int getMember() { return member; } /** *

Sets the member.

* * @param member sets the member */ public void setMember( int member ) { this.member = member; } /** *

Gets the value.

* * @return returns the value */ public double getValue() { return value; } /** *

Sets the value.

* * @param value sets the value */ public void setValue( double value ) { this.value = value; } /** * @see java.lang.Object#hashCode() */ public int hashCode() { final int PRIME = 1000003; int result = 0; if( myString != null ) result = PRIME * result + myString.hashCode(); result = PRIME * result + member; long temp = Double.doubleToLongBits( value ); result = PRIME * result + (int)( temp >>> 32 ); result = PRIME * result + (int)( temp & 0xFFFFFFFF ); return result; } /** * @see java.lang.Object#equals(java.lang.Object) */ public boolean equals( Object oth ) { if( this == oth ) return true; if( oth == null ) return false; if( oth.getClass() != getClass() ) return false; TestVoFile other = (TestVoFile)oth; if( this.myString == null ) { if( other.myString != null ) return false; } else { if( !this.myString.equals( other.myString ) ) return false; } if( this.member != other.member ) return false; if( this.value != other.value ) return false; return true; } /** *

Returns the object as string.

* * @return a string representation of the object * @see java.lang.Object#toString() */ public String toString() { final String SEPARATOR = "\n"; return "TestVoFile: " + SEPARATOR + "myString: '" + myString + "'" + SEPARATOR + "member: '" + member + "'" + SEPARATOR + "value: '" + value + "'" + SEPARATOR + super.toString(); } } /****************************************************************************/ /* EOF */ /****************************************************************************/