🆕 create tracking interfaces

Took 14 seconds
This commit is contained in:
Kiran Hart 2023-10-27 10:21:40 -04:00
parent 05120857c1
commit 9c87f768ea
No known key found for this signature in database
GPG Key ID: 5F36C7BC79D3EBC3
3 changed files with 94 additions and 0 deletions

View File

@ -0,0 +1,32 @@
/*
* Auction House
* Copyright 2023 Kiran Hart
*
* 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 <https://www.gnu.org/licenses/>.
*/
package ca.tweetzy.auctionhouse.api;
import lombok.NonNull;
public interface Identifiable<T> {
/**
* The identifier for the group.
*
* @return The id of the group.
*/
@NonNull
T getId();
}

View File

@ -0,0 +1,26 @@
/*
* Auction House
* Copyright 2023 Kiran Hart
*
* 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 <https://www.gnu.org/licenses/>.
*/
package ca.tweetzy.auctionhouse.api;
public interface Navigable<E extends Enum<E>> {
E next();
E previous();
}

View File

@ -0,0 +1,36 @@
/*
* Auction House
* Copyright 2023 Kiran Hart
*
* 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 <https://www.gnu.org/licenses/>.
*/
package ca.tweetzy.auctionhouse.api;
public interface Trackable {
/**
* Time when the element was created
*
* @return created time
*/
long getTimeCreated();
/**
* Time when element was last updated
*
* @return last updated time
*/
long getLastUpdated();
}