mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-01-24 16:14:26 +08:00
Adds JavaDoc to PageLoader
Removes unused variable in buildSeriesDataString
This commit is contained in:
parent
0375de9cd5
commit
84217a7839
@ -3,7 +3,9 @@ package main.java.com.djrapitops.plan.data.cache;
|
|||||||
import main.java.com.djrapitops.plan.ui.webserver.response.Response;
|
import main.java.com.djrapitops.plan.ui.webserver.response.Response;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Created by Fuzzlemann on 29.07.2017.
|
* This interface is used for providing the method to load the page.
|
||||||
|
*
|
||||||
|
* @author Fuzzlemann
|
||||||
*/
|
*/
|
||||||
public interface PageLoader {
|
public interface PageLoader {
|
||||||
|
|
||||||
|
@ -22,13 +22,14 @@ public class TPSGraphCreator {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static String buildSeriesDataString(List<TPS> tpsData) {
|
public static String buildSeriesDataString(List<TPS> tpsData) {
|
||||||
long now = MiscUtils.getTime();
|
|
||||||
List<Point> points = tpsData.stream()
|
List<Point> points = tpsData.stream()
|
||||||
.map(tps -> new Point(tps.getDate(), tps.getTps()))
|
.map(tps -> new Point(tps.getDate(), tps.getTps()))
|
||||||
.collect(Collectors.toList());
|
.collect(Collectors.toList());
|
||||||
return ScatterGraphCreator.scatterGraph(points, true);
|
return ScatterGraphCreator.scatterGraph(points, true);
|
||||||
|
|
||||||
}public static String buildScatterDataStringTPS(List<TPS> tpsData, long scale) {
|
}
|
||||||
|
|
||||||
|
public static String buildScatterDataStringTPS(List<TPS> tpsData, long scale) {
|
||||||
long now = MiscUtils.getTime();
|
long now = MiscUtils.getTime();
|
||||||
List<Point> points = tpsData.stream()
|
List<Point> points = tpsData.stream()
|
||||||
.filter(tps -> tps.getDate() >= now - scale)
|
.filter(tps -> tps.getDate() >= now - scale)
|
||||||
|
Loading…
Reference in New Issue
Block a user