generated from tommyettinger/libgdx-library-template
-
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.
Version 1.0.1, first actual release of the library, full world implem…
…entation with custom world object support.
- Loading branch information
Showing
16 changed files
with
691 additions
and
94 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
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
23 changes: 23 additions & 0 deletions
23
src/main/java/com/github/kleesup/kleeswept/util/Single.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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.github.kleesup.kleeswept.util; | ||
|
||
/** | ||
* <br>Created on 18.10.2023</br> | ||
* @author KleeSup | ||
* @version 1.0.1 | ||
* @since 1.0 | ||
*/ | ||
public class Single<T> { | ||
|
||
private T obj; | ||
public Single(T initialValue){ | ||
this.obj = initialValue; | ||
} | ||
|
||
public T get() { | ||
return obj; | ||
} | ||
|
||
public void set(T t) { | ||
this.obj = t; | ||
} | ||
} |
Oops, something went wrong.