mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 06:28:49 +00:00
Private home list display, caching
This commit is contained in:
1 parent
83d5a921ee
commit
bafd3837dd
10 files changed
+237
-19
No files matched your search
@@ -7,7 +7,7 @@ import java.util.UUID;
|
||||
/**
|
||||
* Represents a persistently-saved {@link Position}
|
||||
*/
|
||||
public abstract class SavedPosition extends Position {
|
||||
public abstract class SavedPosition extends Position implements Comparable<SavedPosition> {
|
||||
|
||||
/**
|
||||
* Metadata about this position (name, description)
|
||||
@@ -42,4 +42,15 @@ public abstract class SavedPosition extends Position {
|
||||
this.uuid = UUID.randomUUID();
|
||||
}
|
||||
|
||||
/**
|
||||
* Compare two {@link SavedPosition}s, returns alphabetical compareTo result
|
||||
*
|
||||
* @param other the object to be compared.
|
||||
* @return the alphabetical comparison with another {@link SavedPosition}'s {@link PositionMeta#name}
|
||||
*/
|
||||
@Override
|
||||
public final int compareTo(@NotNull SavedPosition other) {
|
||||
return meta.name.compareToIgnoreCase(other.meta.name);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user