From: Roland Häder Date: Sun, 6 Aug 2017 21:13:06 +0000 (+0200) Subject: fixed my name X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=304c1762df62040af857103d415e4bf2d0e73cdc;p=juser-activity-core.git fixed my name Signed-off-by: Roland Häder --- 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); + } + +}