Commit f03331d3 authored by Oleh Astappiev's avatar Oleh Astappiev
Browse files

push local

parent ff5a6f74
# IDEA
.idea
# Compiled files
target
# Database credentials
database.properties
# IDEA
.idea
# Compiled files
target
# Database credentials
database.properties
<?xml version="1.0" encoding="UTF-8"?>
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8">
<output url="file://$MODULE_DIR$/target/classes" />
<output-test url="file://$MODULE_DIR$/target/test-classes" />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
<excludeFolder url="file://$MODULE_DIR$/target" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="Maven: de.siegmar:fastcsv:1.0.2" level="project" />
<orderEntry type="library" name="Maven: mysql:mysql-connector-java:5.1.46" level="project" />
<orderEntry type="library" name="Maven: org.apache.logging.log4j:log4j-api:2.7" level="project" />
<orderEntry type="library" name="Maven: org.apache.logging.log4j:log4j-core:2.7" level="project" />
</component>
<?xml version="1.0" encoding="UTF-8"?>
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8">
<output url="file://$MODULE_DIR$/target/classes" />
<output-test url="file://$MODULE_DIR$/target/test-classes" />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
<excludeFolder url="file://$MODULE_DIR$/target" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="Maven: de.siegmar:fastcsv:1.0.2" level="project" />
<orderEntry type="library" name="Maven: mysql:mysql-connector-java:5.1.46" level="project" />
<orderEntry type="library" name="Maven: org.apache.logging.log4j:log4j-api:2.7" level="project" />
<orderEntry type="library" name="Maven: org.apache.logging.log4j:log4j-core:2.7" level="project" />
</component>
</module>
\ No newline at end of file
package de.l3s.shs.shsclienttest.client;
public enum Direction {
FORWARD(0),
BACKWARD(1),
/**
* Alias for FORWARD
*/
OUTGOING(0),
/**
* Alias for BACKWARD
*/
INCOMING(1);
private final int value;
Direction(int value) {
this.value = value;
}
public int getValue() {
return value;
}
}
package de.l3s.shs.shsclienttest.client;
public enum Direction {
FORWARD(0),
BACKWARD(1),
/**
* Alias for FORWARD
*/
OUTGOING(0),
/**
* Alias for BACKWARD
*/
INCOMING(1);
private final int value;
Direction(int value) {
this.value = value;
}
public int getValue() {
return value;
}
}
package de.l3s.shs.shsclienttest.client;
import java.time.Instant;
import java.time.LocalDate;
import java.time.ZoneId;
import java.time.format.DateTimeFormatter;
import java.util.Date;
public class TimeUtils {
private static final DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd");
public static int getTimestampWithoutMillis(long timestamp) {
return Math.toIntExact(timestamp / 1000);
}
public static Date getDate(long timestamp) {
return new Date(timestamp);
}
public static LocalDate getLocalDate(long timestamp) {
return Instant.ofEpochMilli(timestamp).atZone(ZoneId.systemDefault()).toLocalDate();
}
public static String getFormattedDate(long timestamp) {
return dateTimeFormatter.format(getLocalDate(timestamp));
}
}
package de.l3s.shs.shsclienttest.client;
import java.time.Instant;
import java.time.LocalDate;
import java.time.ZoneId;
import java.time.format.DateTimeFormatter;
import java.util.Date;
public class TimeUtils {
private static final DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd");
public static int getTimestampWithoutMillis(long timestamp) {
return Math.toIntExact(timestamp / 1000);
}
public static Date getDate(long timestamp) {
return new Date(timestamp);
}
public static LocalDate getLocalDate(long timestamp) {
return Instant.ofEpochMilli(timestamp).atZone(ZoneId.systemDefault()).toLocalDate();
}
public static String getFormattedDate(long timestamp) {
return dateTimeFormatter.format(getLocalDate(timestamp));
}
}
database.host = learnweb.l3s.uni-hannover.de:3306
database.database = shs_evaluation
database.username = shs_evaluation
database.password = B56TFTuSUPtcpIcY
database.host = localhost:3306
database.database = username
database.username = username
database.password = password
database.host = localhost:3306
database.database = username
database.username = username
database.password = password
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment