mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-10-25 22:31:07 +02:00
Remove unnecessary modifiers to follow the convention
Change-Id: Ie8ff539252df6ed9df5ff827d639166a78fbf18d
This commit is contained in:
parent
d493625192
commit
d2e78f9804
@ -26,10 +26,10 @@ import static com.google.common.base.Preconditions.checkNotNull;
|
|||||||
public interface Timestamp extends Comparable<Timestamp> {
|
public interface Timestamp extends Comparable<Timestamp> {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public abstract int hashCode();
|
int hashCode();
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public abstract boolean equals(Object obj);
|
boolean equals(Object obj);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tests if this timestamp is newer than the specified timestamp.
|
* Tests if this timestamp is newer than the specified timestamp.
|
||||||
@ -37,7 +37,7 @@ public interface Timestamp extends Comparable<Timestamp> {
|
|||||||
* @param other timestamp to compare against
|
* @param other timestamp to compare against
|
||||||
* @return true if this instance is newer
|
* @return true if this instance is newer
|
||||||
*/
|
*/
|
||||||
public default boolean isNewerThan(Timestamp other) {
|
default boolean isNewerThan(Timestamp other) {
|
||||||
return this.compareTo(checkNotNull(other)) > 0;
|
return this.compareTo(checkNotNull(other)) > 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user