/** * Returns the hash code value for this {@code StatusVariable}. The hash * code is calculated based on the full path, collection method and value of * the {@code StatusVariable}. * * @return the hash code of this object */ public int hashCode() { int hash = hashCode(id) ^ cm; switch (type) { case TYPE_INTEGER : return hash ^ intData; case TYPE_FLOAT : return hash ^ hashCode(new Float(floatData)); case TYPE_BOOLEAN : return hash ^ hashCode(new Boolean(booleanData)); case TYPE_STRING : return hash ^ hashCode(stringData); } return 0; // never reached }
/** * Returns the hash code value for this <code>StatusVariable</code>. The * hash code is calculated based on the full path, collection method and * value of the <code>StatusVariable</code>. * * @return the hash code of this object */ public int hashCode() { int hash = hashCode(id) ^ cm; switch (type) { case TYPE_INTEGER: return hash ^ intData; case TYPE_FLOAT: return hash ^ hashCode(new Float(floatData)); case TYPE_BOOLEAN: return hash ^ hashCode(new Boolean(booleanData)); case TYPE_STRING: return hash ^ hashCode(stringData); } return 0; // never reached }
/** * Returns the hash code value for this {@code StatusVariable}. The * hash code is calculated based on the full path, collection method and * value of the {@code StatusVariable}. * * @return the hash code of this object */ public int hashCode() { int hash = hashCode(id) ^ cm; switch (type) { case TYPE_INTEGER: return hash ^ intData; case TYPE_FLOAT: return hash ^ hashCode(new Float(floatData)); case TYPE_BOOLEAN: return hash ^ hashCode(new Boolean(booleanData)); case TYPE_STRING: return hash ^ hashCode(stringData); } return 0; // never reached }
/** * Returns the hash code value for this {@code StatusVariable}. The * hash code is calculated based on the full path, collection method and * value of the {@code StatusVariable}. * * @return the hash code of this object */ public int hashCode() { int hash = hashCode(id) ^ cm; switch (type) { case TYPE_INTEGER: return hash ^ intData; case TYPE_FLOAT: return hash ^ hashCode(new Float(floatData)); case TYPE_BOOLEAN: return hash ^ hashCode(new Boolean(booleanData)); case TYPE_STRING: return hash ^ hashCode(stringData); } return 0; // never reached }
/** * Returns the hash code value for this {@code StatusVariable}. The hash * code is calculated based on the full path, collection method and value of * the {@code StatusVariable}. * * @return the hash code of this object */ @Override public int hashCode() { int hash = hashCode(id) ^ cm; switch (type) { case TYPE_INTEGER : return hash ^ intData; case TYPE_FLOAT : return hash ^ hashCode(Float.valueOf(floatData)); case TYPE_BOOLEAN : return hash ^ hashCode(Boolean.valueOf(booleanData)); case TYPE_STRING : return hash ^ hashCode(stringData); } return 0; // never reached }
/** * Returns the hash code value for this {@code StatusVariable}. The hash * code is calculated based on the full path, collection method and value of * the {@code StatusVariable}. * * @return the hash code of this object */ public int hashCode() { int hash = hashCode(id) ^ cm; switch (type) { case TYPE_INTEGER : return hash ^ intData; case TYPE_FLOAT : return hash ^ hashCode(new Float(floatData)); case TYPE_BOOLEAN : return hash ^ hashCode(new Boolean(booleanData)); case TYPE_STRING : return hash ^ hashCode(stringData); } return 0; // never reached }
/** * Returns the hash code value for this {@code StatusVariable}. The hash * code is calculated based on the full path, collection method and value of * the {@code StatusVariable}. * * @return the hash code of this object */ public int hashCode() { int hash = hashCode(id) ^ cm; switch (type) { case TYPE_INTEGER : return hash ^ intData; case TYPE_FLOAT : return hash ^ hashCode(new Float(floatData)); case TYPE_BOOLEAN : return hash ^ hashCode(new Boolean(booleanData)); case TYPE_STRING : return hash ^ hashCode(stringData); } return 0; // never reached }