@Override public int hashCode() { final int prime = 31; int result = super.hashCode(); result = prime * result + value; return result; }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!super.equals(obj)) { return false; } if (getClass() != obj.getClass()) { return false; } IntegerConstantValueTag other = (IntegerConstantValueTag) obj; if (value != other.value) { return false; } return true; }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!super.equals(obj)) { return false; } if (getClass() != obj.getClass()) { return false; } LongConstantValueTag other = (LongConstantValueTag) obj; if (value != other.value) { return false; } return true; }
@Override public int hashCode() { final int prime = 31; int result = super.hashCode(); result = prime * result + (int) (value ^ (value >>> 32)); return result; }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!super.equals(obj)) { return false; } if (getClass() != obj.getClass()) { return false; } DoubleConstantValueTag other = (DoubleConstantValueTag) obj; if (Double.doubleToLongBits(value) != Double.doubleToLongBits(other.value)) { return false; } return true; }
@Override public int hashCode() { final int prime = 31; int result = super.hashCode(); result = prime * result + Float.floatToIntBits(value); return result; }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!super.equals(obj)) { return false; } if (getClass() != obj.getClass()) { return false; } FloatConstantValueTag other = (FloatConstantValueTag) obj; if (Float.floatToIntBits(value) != Float.floatToIntBits(other.value)) { return false; } return true; }
@Override public int hashCode() { final int prime = 31; int result = super.hashCode(); long temp; temp = Double.doubleToLongBits(value); result = prime * result + (int) (temp ^ (temp >>> 32)); return result; }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!super.equals(obj)) { return false; } if (getClass() != obj.getClass()) { return false; } StringConstantValueTag other = (StringConstantValueTag) obj; if (value == null) { if (other.value != null) { return false; } } else if (!value.equals(other.value)) { return false; } return true; }
@Override public int hashCode() { final int prime = 31; int result = super.hashCode(); result = prime * result + ((value == null) ? 0 : value.hashCode()); return result; }