Optimize hashcode
This commit is contained in:
parent
14fd6fc4b2
commit
c7ebf9e32f
@ -98,7 +98,7 @@ public class NullableInt52 implements Serializable, IGenericNullable {
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(value);
|
||||
return value == null ? 0 : value.hashCode();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -114,7 +114,7 @@ public class NullableString implements Serializable, IGenericNullable {
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(value);
|
||||
return value == null ? 0 : value.hashCode();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -96,7 +96,7 @@ public class Nullableboolean implements Serializable, IGenericNullable {
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(value);
|
||||
return value == null ? 0 : value.hashCode();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -96,7 +96,7 @@ public class Nullablebyte implements Serializable, IGenericNullable {
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(value);
|
||||
return value == null ? 0 : value.hashCode();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -96,7 +96,7 @@ public class Nullablechar implements Serializable, IGenericNullable {
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(value);
|
||||
return value == null ? 0 : value.hashCode();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -96,7 +96,7 @@ public class Nullabledouble implements Serializable, IGenericNullable {
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(value);
|
||||
return value == null ? 0 : value.hashCode();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -96,7 +96,7 @@ public class Nullablefloat implements Serializable, IGenericNullable {
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(value);
|
||||
return value == null ? 0 : value.hashCode();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -96,7 +96,7 @@ public class Nullableint implements Serializable, IGenericNullable {
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(value);
|
||||
return value == null ? 0 : value.hashCode();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -96,7 +96,7 @@ public class Nullablelong implements Serializable, IGenericNullable {
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(value);
|
||||
return value == null ? 0 : value.hashCode();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -96,7 +96,7 @@ public class Nullableshort implements Serializable, IGenericNullable {
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(value);
|
||||
return value == null ? 0 : value.hashCode();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user