aboutsummaryrefslogtreecommitdiffstats
path: root/Pair.java
diff options
context:
space:
mode:
authorClyhtsuriva <aimeric@adjutor.xyz>2020-12-19 23:21:05 +0100
committerClyhtsuriva <aimeric@adjutor.xyz>2020-12-19 23:21:05 +0100
commitfe4f2ee0f70b7b35113062538a51bf5444131196 (patch)
treead0d0e54bf0c9ee536e96aac2c45c622e73def92 /Pair.java
parent4c37298e054dc1681875a71b181ce0478c577349 (diff)
downloadjMusicHub-fe4f2ee0f70b7b35113062538a51bf5444131196.tar.gz
jMusicHub-fe4f2ee0f70b7b35113062538a51bf5444131196.tar.bz2
jMusicHub-fe4f2ee0f70b7b35113062538a51bf5444131196.zip
Adding AudioBooks
Finishing AudioBook class, adding list and save for the audiobooks. Adding extract method for both audiobooks and songs. Resolving the id incremention issue.
Diffstat (limited to '')
-rw-r--r--Pair.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/Pair.java b/Pair.java
new file mode 100644
index 0000000..d7648d0
--- /dev/null
+++ b/Pair.java
@@ -0,0 +1,11 @@
+public class Pair<S, T> {
+ public final S x;
+ public final T y;
+
+ public Pair(S x, T y) {
+ this.x = x;
+ this.y = y;
+ }
+ public S getX(){return x;}
+ public T getY(){return y;}
+}