Skip to content

UnKabaraQuiDev/PCLib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PCLib

This is a collection of classes and methods I use in other projects

This was made for Java (1.)8

Includes:

  • Triplet, ReadOnlyTriplet, Triplets
    "Pairs" 3 objects together.

  • Pair, ReadOnlyPair, Pairs
    Pairs 2 objects together.

  • JavaPointer, ObjectPointer, PrimitivePointer
    A replacement for pointers like in low-level languages, useful for primitive types.

  • GlobalLogger, PCLogger
    Useful to easily log into files, GlobalLogger contains a static instance of PCLogger.
    Config example in: logs.properties

  • EventManager, Async/SyncEventManager, Event, Listener, @EventHandler, EventDispatcher, @ListenerPriority
    Easily dispatch events to different Listeners (uses annotation reflection)

  • ExceptionSupplier, ExceptionFunction<T, R>, ExceptionConsumer
    Supplier that can throw an Exception

  • ThreadBuilder
    Easily build Thread in a single statement

  • PCUtils
    Static class containing utility methods

  • @DependsOn

  • lu.pcy113.pclib.db.*
    Minimalistic SQL DataBase framework (uses annotation reflection) (see src/test/java/DBMain)

  • ConfigLoader
    Loads a config from a properties or json file (uses annotation reflection)

  • NextTask
    A CompletableFuture replacement (chains multiple operations in one statement) (see src/test/java/NextTaskMain)

  • ByteBuddyAgent
    A Java agent that loads @MixinClass and @MixinMethod to modify bytecode at runtime (see MixinLoader & PairMixin)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages