-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #107 from HSGamer/generic-key
- Loading branch information
Showing
27 changed files
with
246 additions
and
242 deletions.
There are no files selected for viewing
12 changes: 5 additions & 7 deletions
12
core/src/main/java/me/hsgamer/topper/core/agent/snapshot/DataSnapshot.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
package me.hsgamer.topper.core.agent.snapshot; | ||
|
||
import java.util.UUID; | ||
public class DataSnapshot<K, V> { | ||
public final K key; | ||
public final V value; | ||
|
||
public class DataSnapshot<T> { | ||
public final UUID uuid; | ||
public final T value; | ||
|
||
DataSnapshot(UUID uuid, T value) { | ||
this.uuid = uuid; | ||
DataSnapshot(K key, V value) { | ||
this.key = key; | ||
this.value = value; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.