From 304c1762df62040af857103d415e4bf2d0e73cdc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sun, 6 Aug 2017 23:13:06 +0200 Subject: [PATCH] fixed my name MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../user/activity/LogableUserActivity.java | 4 +- .../model/user/activity/UserActivityLog.java | 4 +- .../UserActivityLogTimestampComparator.java | 68 +++++++++---------- 3 files changed, 38 insertions(+), 38 deletions(-) diff --git a/src/org/mxchange/jusercore/model/user/activity/LogableUserActivity.java b/src/org/mxchange/jusercore/model/user/activity/LogableUserActivity.java index cfed88f..f8037b2 100644 --- a/src/org/mxchange/jusercore/model/user/activity/LogableUserActivity.java +++ b/src/org/mxchange/jusercore/model/user/activity/LogableUserActivity.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2016 Roland Haeder + * Copyright (C) 2016 Roland Häder * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -24,7 +24,7 @@ import org.mxchange.jusercore.model.user.User; /** * POJI for logable user activity *

- * @author Roland Haeder + * @author Roland Häder */ public interface LogableUserActivity extends Serializable { diff --git a/src/org/mxchange/jusercore/model/user/activity/UserActivityLog.java b/src/org/mxchange/jusercore/model/user/activity/UserActivityLog.java index 072253a..bb9f641 100644 --- a/src/org/mxchange/jusercore/model/user/activity/UserActivityLog.java +++ b/src/org/mxchange/jusercore/model/user/activity/UserActivityLog.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2016 Roland Haeder + * Copyright (C) 2016 Roland Häder * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -44,7 +44,7 @@ import org.mxchange.jusercore.model.user.User; /** * A POJO for user acitivity log *

- * @author Roland Haeder + * @author Roland Häder */ @Entity (name = "user_activity_log") @Table ( diff --git a/src/org/mxchange/jusercore/model/user/activity/comparator/UserActivityLogTimestampComparator.java b/src/org/mxchange/jusercore/model/user/activity/comparator/UserActivityLogTimestampComparator.java index 30424f1..d601915 100644 --- a/src/org/mxchange/jusercore/model/user/activity/comparator/UserActivityLogTimestampComparator.java +++ b/src/org/mxchange/jusercore/model/user/activity/comparator/UserActivityLogTimestampComparator.java @@ -1,34 +1,34 @@ -/* - * Copyright (C) 2016 Roland Haeder - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package org.mxchange.jusercore.model.user.activity.comparator; - -import java.util.Comparator; -import org.mxchange.jusercore.model.user.activity.LogableUserActivity; - -/** - * A comparator for comparing timestamps in user activity log - *

- * @author Roland Haeder - */ -public class UserActivityLogTimestampComparator implements Comparator { - - @Override - public int compare (final LogableUserActivity userActivity1, final LogableUserActivity userActivity2) { - return (userActivity1.getActivityTimestamp().getTime().getTime() < userActivity2.getActivityTimestamp().getTime().getTime() ? -1 : userActivity1.getActivityTimestamp().getTime().getTime() == userActivity2.getActivityTimestamp().getTime().getTime() ? 0 : 1); - } - -} +/* + * Copyright (C) 2016 Roland Häder + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.mxchange.jusercore.model.user.activity.comparator; + +import java.util.Comparator; +import org.mxchange.jusercore.model.user.activity.LogableUserActivity; + +/** + * A comparator for comparing timestamps in user activity log + *

+ * @author Roland Häder + */ +public class UserActivityLogTimestampComparator implements Comparator { + + @Override + public int compare (final LogableUserActivity userActivity1, final LogableUserActivity userActivity2) { + return (userActivity1.getActivityTimestamp().getTime().getTime() < userActivity2.getActivityTimestamp().getTime().getTime() ? -1 : userActivity1.getActivityTimestamp().getTime().getTime() == userActivity2.getActivityTimestamp().getTime().getTime() ? 0 : 1); + } + +} -- 2.39.5