This repository has been archived by the owner on May 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
slowcheet4h
committed
Apr 4, 2021
1 parent
efeb789
commit 7c6fd1d
Showing
20 changed files
with
829 additions
and
786 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
package pisi.unitedmeows.meowlib.async; | ||
|
||
public class Result<X> { | ||
|
||
protected X value; | ||
|
||
public Result(X val) { | ||
value = val; | ||
} | ||
|
||
public X value() { | ||
return value; | ||
} | ||
} | ||
package pisi.unitedmeows.meowlib.async; | ||
|
||
public class Result<X> { | ||
|
||
protected X value; | ||
|
||
public Result(X val) { | ||
value = val; | ||
} | ||
|
||
public X value() { | ||
return value; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
package pisi.unitedmeows.meowlib.etc; | ||
|
||
import java.util.UUID; | ||
|
||
@FunctionalInterface | ||
public interface IAction { | ||
void run() throws Exception; | ||
} | ||
package pisi.unitedmeows.meowlib.etc; | ||
|
||
import java.util.UUID; | ||
|
||
@FunctionalInterface | ||
public interface IAction { | ||
void run() throws Exception; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
package pisi.unitedmeows.meowlib.etc; | ||
|
||
|
||
import java.io.Serializable; | ||
|
||
public class MLibSetting<X extends Serializable> { | ||
|
||
private MLibSettings label; | ||
private X value; | ||
|
||
public MLibSetting(MLibSettings label, X value) { | ||
this.label = label; | ||
this.value = value; | ||
} | ||
|
||
public X getValue() { | ||
return value; | ||
} | ||
|
||
public MLibSettings getLabel() { | ||
return label; | ||
} | ||
} | ||
package pisi.unitedmeows.meowlib.etc; | ||
|
||
|
||
import java.io.Serializable; | ||
|
||
public class MLibSetting<X extends Serializable> { | ||
|
||
private MLibSettings label; | ||
private X value; | ||
|
||
public MLibSetting(MLibSettings label, X value) { | ||
this.label = label; | ||
this.value = value; | ||
} | ||
|
||
public X getValue() { | ||
return value; | ||
} | ||
|
||
public MLibSettings getLabel() { | ||
return label; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
package pisi.unitedmeows.meowlib.etc; | ||
|
||
public class Tuple<F, S> { | ||
|
||
private F first; | ||
private S second; | ||
|
||
public Tuple(F first, S second) { | ||
this.first = first; | ||
this.second = second; | ||
} | ||
|
||
public F getFirst() { | ||
return first; | ||
} | ||
|
||
public S getSecond() { | ||
return second; | ||
} | ||
|
||
public void setFirst(F first) { | ||
this.first = first; | ||
} | ||
|
||
public void setSecond(S second) { | ||
this.second = second; | ||
} | ||
} | ||
package pisi.unitedmeows.meowlib.etc; | ||
|
||
public class Tuple<F, S> { | ||
|
||
private F first; | ||
private S second; | ||
|
||
public Tuple(F first, S second) { | ||
this.first = first; | ||
this.second = second; | ||
} | ||
|
||
public F getFirst() { | ||
return first; | ||
} | ||
|
||
public S getSecond() { | ||
return second; | ||
} | ||
|
||
public void setFirst(F first) { | ||
this.first = first; | ||
} | ||
|
||
public void setSecond(S second) { | ||
this.second = second; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
package pisi.unitedmeows.meowlib.etc; | ||
|
||
public class Tuple3<F, S, T> { | ||
|
||
private F first; | ||
private S second; | ||
private T third; | ||
|
||
|
||
public Tuple3(F first, S second, T third) { | ||
this.first = first; | ||
this.second = second; | ||
this.third = third; | ||
} | ||
|
||
public F getFirst() { | ||
return first; | ||
} | ||
|
||
public S getSecond() { | ||
return second; | ||
} | ||
|
||
public T getThird() { | ||
return third; | ||
} | ||
} | ||
package pisi.unitedmeows.meowlib.etc; | ||
|
||
public class Tuple3<F, S, T> { | ||
|
||
private F first; | ||
private S second; | ||
private T third; | ||
|
||
|
||
public Tuple3(F first, S second, T third) { | ||
this.first = first; | ||
this.second = second; | ||
this.third = third; | ||
} | ||
|
||
public F getFirst() { | ||
return first; | ||
} | ||
|
||
public S getSecond() { | ||
return second; | ||
} | ||
|
||
public T getThird() { | ||
return third; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,33 @@ | ||
package pisi.unitedmeows.meowlib.etc; | ||
|
||
public class Tuple4<F, S, T, L> { | ||
|
||
private F first; | ||
private S second; | ||
private T third; | ||
private L last; | ||
|
||
|
||
public Tuple4(F first, S second, T third, L last) { | ||
this.first = first; | ||
this.second = second; | ||
this.third = third; | ||
this.last = last; | ||
} | ||
|
||
public F getFirst() { | ||
return first; | ||
} | ||
|
||
public S getSecond() { | ||
return second; | ||
} | ||
|
||
public T getThird() { | ||
return third; | ||
} | ||
|
||
public L getLast() { | ||
return last; | ||
} | ||
} | ||
package pisi.unitedmeows.meowlib.etc; | ||
|
||
public class Tuple4<F, S, T, L> { | ||
|
||
private F first; | ||
private S second; | ||
private T third; | ||
private L last; | ||
|
||
|
||
public Tuple4(F first, S second, T third, L last) { | ||
this.first = first; | ||
this.second = second; | ||
this.third = third; | ||
this.last = last; | ||
} | ||
|
||
public F getFirst() { | ||
return first; | ||
} | ||
|
||
public S getSecond() { | ||
return second; | ||
} | ||
|
||
public T getThird() { | ||
return third; | ||
} | ||
|
||
public L getLast() { | ||
return last; | ||
} | ||
} |
14 changes: 7 additions & 7 deletions
14
pisi/unitedmeows/meowlib/etc/memorable/MemorableElement.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
package pisi.unitedmeows.meowlib.etc.memorable; | ||
|
||
public class MemorableElement<X> { | ||
public int index; | ||
public X element; | ||
public MemorableTail<X> parentTail; | ||
} | ||
package pisi.unitedmeows.meowlib.etc.memorable; | ||
|
||
public class MemorableElement<X> { | ||
public int index; | ||
public X element; | ||
public MemorableTail<X> parentTail; | ||
} |
Oops, something went wrong.