Skip to content

Commit

Permalink
更新
Browse files Browse the repository at this point in the history
  • Loading branch information
mcchampions committed Jan 6, 2024
1 parent 3f4cab6 commit 15c59ec
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public class Main implements CommandExecutor,Listener{
<dependency>
<groupId>top.qscraft</groupId>
<artifactId>dodoopenjava</artifactId>
<version>3.2.2</version>
<version>3.2.3</version>
</dependency>
</dependencies>
```
Expand All @@ -109,7 +109,7 @@ public class Main implements CommandExecutor,Listener{
}
dependencies {
implementation 'top.qscraft:dodoopenjava:3.2.2'
implementation 'top.qscraft:dodoopenjava:3.2.3'
}
```
### 教程(过于古老,无参考价值,改日重写)
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<groupId>io.github.minecraftchampions.dodoopenjava</groupId>
<artifactId>DodoOpenJava</artifactId>
<version>3.2.2</version>
<version>3.2.3</version>
<packaging>jar</packaging>
<name>DodoOpenJava</name>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public void addResult(@NonNull Result result) {
*
* @return 日志
*/
public CompletableFuture<ConcurrentSkipListMap<Long, LinkedHashSet<Result>>> getAllLogs() {
public CompletableFuture<Map<Long, LinkedHashSet<Result>>> getAllLogs() {
return getLogs(null, null);
}

Expand All @@ -57,7 +57,7 @@ public CompletableFuture<ConcurrentSkipListMap<Long, LinkedHashSet<Result>>> get
* @param endDate 结束
* @return 日志
*/
public CompletableFuture<ConcurrentSkipListMap<Long, LinkedHashSet<Result>>> getLogs(Date startDate, Date endDate) {
public CompletableFuture<Map<Long, LinkedHashSet<Result>>> getLogs(Date startDate, Date endDate) {
long startTimestamp;
long endTimestamp;
if (startDate == null) {
Expand All @@ -80,7 +80,7 @@ public CompletableFuture<ConcurrentSkipListMap<Long, LinkedHashSet<Result>>> get
* @param endTimestamp 结束
* @return 日志
*/
public CompletableFuture<ConcurrentSkipListMap<Long, LinkedHashSet<Result>>> getLogs(long startTimestamp, long endTimestamp) {
public CompletableFuture<Map<Long, LinkedHashSet<Result>>> getLogs(long startTimestamp, long endTimestamp) {
return CompletableFuture.supplyAsync(() -> {
Map<Long, LinkedHashSet<Result>> subMap = resultsLogMap.subMap(startTimestamp, true, endTimestamp, true);
ConcurrentSkipListMap<Long, LinkedHashSet<Result>> deepCopiedMap = new ConcurrentSkipListMap<>();
Expand Down

0 comments on commit 15c59ec

Please sign in to comment.