My own custom utilities that I use a lot.
You can find the Javadoc here
This isn't supposed to be like production grade or anything its just what i want man,
but the packages look like this:
com.yetnt.utilstuplePair- Immutable tuple of two related values of different typesSamePair- Immutable tuple of two related values of the same typeMutablePair- Mutable tuple of two related values of different typesTriple- Immutable tuple of three related values of the same type
buildersAnsiColour- Applying console colouring in a single methodInlineHTML- HTML Builder via method chainingMarkDownLiteral- MarkDown Builder via method chaining
collectionbucketsBucket- Holds multipleClass<?>objectsBuckets- Filters a mixed list of Objects by theirBucketorClass<?>into separated lists.
HashMultiMap- One key, Multiple values (HashMap to an ArrayList, with some extra method)SetDeque- A deque with uniqueness. Not tested lol
functional(The interface names are self-descriptive.)consumerTriConsumer,TrinaryConsumer,QuadConsumerThrowableConsumer,ThrowableBiConsumer, ...ThrowableQuadConsumer
functionTriFunction,QuadFunctionThrowableFunction,ThrowableBiFunction, ...ThrowableQuadFunction
genericThrowableRunnable,ThrowableSupplier
ioFilesUtility- Files utility, not finished writing this one so id suggest not using.JarPath- Wraps a string path into a record, with a singlereadmethod to read from resources stream
qolColours- Contains random repetitive colour stuff i do
wtf(Dont use anything here.)ThrowableCentiFunction- A Function which takes 100 arguments, returns a result and might throw.
<dependency>
<groupId>io.github.yetnt</groupId>
<artifactId>ytils</artifactId>
<version>VERSION</version>
</dependency>(It's published on Maven Central so the other imports should work)