diff options
author | 2022-11-30 16:16:55 +0100 | |
---|---|---|
committer | 2022-11-30 16:16:55 +0100 | |
commit | beb95a69279d56053d1f42155ab24ed7ec37f388 (patch) | |
tree | 3262e5f39755d11549852842bdfed287986f2e81 /src/main/java/it/alessandroiezzi/util | |
parent | 46bed7c28a5df7add8f52730d87712bde13e29c5 (diff) | |
download | commons-page-beb95a69279d56053d1f42155ab24ed7ec37f388.tar.gz commons-page-beb95a69279d56053d1f42155ab24ed7ec37f388.zip |
Move Page in a new package
Diffstat (limited to 'src/main/java/it/alessandroiezzi/util')
-rw-r--r-- | src/main/java/it/alessandroiezzi/util/Page.java | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/main/java/it/alessandroiezzi/util/Page.java b/src/main/java/it/alessandroiezzi/util/Page.java new file mode 100644 index 0000000..766c763 --- /dev/null +++ b/src/main/java/it/alessandroiezzi/util/Page.java @@ -0,0 +1,28 @@ +/* + * Copyright (C) 2022 Alessandro Iezzi <aiezzi AT alessandroiezzi PERIOD it> + * + * This file is part of commons-page. + * + * commons-page is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * commons-page 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with commons-page. If not, see <https://www.gnu.org/licenses/>. + */ + +package it.alessandroiezzi.util; + +import java.util.*; + +public interface Page<T> { + List<T> getContent(); + int getSize(); + int getNumberOfElements(); +} |