TerminalProfilModule.java

00001 /*
00002  * OpenMobileIS - a free Java(TM) Framework for mobile applications Java(TM)
00003  * Copyright (C) 2006-2008 Ubikis
00004  * All rights reserved.
00005  * Contact: pdelrieu@openmobileis.org
00006  *
00007  * This library is free software; you can redistribute it and/or
00008  * modify it under the terms of the GNU Lesser General Public
00009  * License as published by the Free Software Foundation; either
00010  * version 2.1 of the License, or any later version.
00011  *
00012  * This library is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015  * Lesser General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU Lesser General Public
00018  * License along with this library; if not, write to the Free Software
00019  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
00020  * USA
00021  *
00022  *  Author : Philippe Delrieu
00023  *  
00024  *  Modifications :
00025  *  Creation P.Delrieu
00026  * 
00027  */
00028 package org.openmobileis.module.profiles.terminal;
00029 
00030 import org.openmobileis.common.util.OpenMISSerializable;
00031 
00040 public final class TerminalProfilModule implements OpenMISSerializable {
00041   static final long serialVersionUID = 5521257935120563452L;
00042 
00043   public String moduleName;
00044   public String moduleVersion;
00048         public TerminalProfilModule() {
00049         }
00050         
00051         public int hashCode() {
00052                 final int prime = 31;
00053                 int result = 1;
00054                 result = prime * result + ((moduleName == null) ? 0 : moduleName.hashCode());
00055                 result = prime * result + ((moduleVersion == null) ? 0 : moduleVersion.hashCode());
00056                 return result;
00057         }
00058         public boolean equals(Object obj) {
00059                 if (this == obj)
00060                         return true;
00061                 if (obj == null)
00062                         return false;
00063                 if (getClass() != obj.getClass())
00064                         return false;
00065                 final TerminalProfilModule other = (TerminalProfilModule) obj;
00066                 if (moduleName == null) {
00067                         if (other.moduleName != null)
00068                                 return false;
00069                 } else if (!moduleName.equals(other.moduleName))
00070                         return false;
00071                 if (moduleVersion == null) {
00072                         if (other.moduleVersion != null)
00073                                 return false;
00074                 } else if (!moduleVersion.equals(other.moduleVersion))
00075                         return false;
00076                 return true;
00077         }
00078         
00079         
00080 
00081 }

Generated on Mon Jan 11 21:19:17 2010 for OpenMobileIS by  doxygen 1.5.4