mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
parent
40b9134eb8
commit
b4e9161fd0
1 changed files with 0 additions and 29 deletions
|
@ -1,29 +0,0 @@
|
|||
package org.logstash.bivalues;
|
||||
|
||||
public class SomeJavaObject<T> {
|
||||
private T value;
|
||||
|
||||
public T getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public SomeJavaObject(T value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (!(o instanceof SomeJavaObject)) return false;
|
||||
|
||||
SomeJavaObject<?> that = (SomeJavaObject<?>) o;
|
||||
|
||||
return value != null ? value.equals(that.getValue()) : that.value == null;
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return value != null ? value.hashCode() : 0;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue