Thread: [KT] NBUtil: Make your kotlin easier

Page 3 of 3 FirstFirst 123
Results 21 to 27 of 27
  1. #21  
    Extreme Donator

    nbness2's Avatar
    Join Date
    Aug 2011
    Posts
    692
    Thanks given
    274
    Thanks received
    139
    Rep Power
    430
    Update 2019/06/12

    Add ColorUtil v1.0-0
    • Allows you to use colors in a few different formats: RGB, CMYK, HSV and HSL (more coming soonish)
    • Convert to and from these formats, or create your own "version" of them!


    ColorUtil: SOURCE/JAR
    KT/JAVA - NBX 637 - HERE!
    KT - Drop table 4: Flexible, Powerful - HERE!
    KT - Command: Simplify writing commands - HERE
    KT - NbUtil: Make your kotlin easier - HERE
    KT - Hopping Islands: From Java to Kotlin - P1 - P2 - P3 - P4 - P5
    Reply With Quote  
     

  2. #22  
    Extreme Donator

    nbness2's Avatar
    Join Date
    Aug 2011
    Posts
    692
    Thanks given
    274
    Thanks received
    139
    Rep Power
    430
    Update 2019/06/17

    Fixes and additions

    Update NumberUtil to v1.3-0 and StringUtil to V1.1-0
    • Added Alias classes. StringAliases to StringUtil and NumberAliases and primitive variants to NumberUtil
    • Essentially any number\string being compared to its respective alias will be true if it is contained in the alias.
    • StringAliases can ignore case if you so choose.
    • Useful if you are comparing multiple numbers. For example in the RSPS world, trying to get rid of nulls that might pop up. val nullAliases = ShortAliases(nullId1, nullId2, nullId3, ..., nullId420) -> if (itemId in nullAliases) // get rid of null
    • Also useful if you have a bunch of words you want to filter out. Same idea as last, but with strings instead of shorts!


    Fixes to NumberUtil v1.2-0 (now v1.2-1)
    • Fixed DenseQuad.fourth bugs that tried to access the fifth rather than fourth. But there was no fifth.
    • Fix also applied to 1.3-0 and future.


    NumberUtil: SOURCE/JAR
    StringUtil: SOURCE/JAR
    KT/JAVA - NBX 637 - HERE!
    KT - Drop table 4: Flexible, Powerful - HERE!
    KT - Command: Simplify writing commands - HERE
    KT - NbUtil: Make your kotlin easier - HERE
    KT - Hopping Islands: From Java to Kotlin - P1 - P2 - P3 - P4 - P5
    Reply With Quote  
     

  3. #23  
    Extreme Donator

    nbness2's Avatar
    Join Date
    Aug 2011
    Posts
    692
    Thanks given
    274
    Thanks received
    139
    Rep Power
    430
    Update 2019/06/21

    Created InputUtil
    • Send a string to the console, get an input and convert it to a return type.
    • Set up conditions that the input must pass before returning a value.
    • Give your own input-getting function


    Spoiler for input types:

    basic input
    [img]https://i.imgur.com/IhGq8gl.png/img]

    advanced input
    Attached image


    InputUtil: SOURCE/JAR
    KT/JAVA - NBX 637 - HERE!
    KT - Drop table 4: Flexible, Powerful - HERE!
    KT - Command: Simplify writing commands - HERE
    KT - NbUtil: Make your kotlin easier - HERE
    KT - Hopping Islands: From Java to Kotlin - P1 - P2 - P3 - P4 - P5
    Reply With Quote  
     

  4. #24  
    Extreme Donator

    nbness2's Avatar
    Join Date
    Aug 2011
    Posts
    692
    Thanks given
    274
    Thanks received
    139
    Rep Power
    430
    Update 2019/07/02

    Updated DelegateUtil from v1.0-0 to v1.1-0
    • Added a default value to SingleSetVar and it's helper.


    Updated InputUtil from v1.0-0 to V1.1-0
    • Added onInputRetrievalException so you can customize how you handle an exception that arises when retrieving input.
    • Added onInputConversionException so you can customize how you handle an exception that arises when converting input to desired output type.


    DelegateUtil: SOURCE/JAR
    InputUtil: SOURCE/JAR
    KT/JAVA - NBX 637 - HERE!
    KT - Drop table 4: Flexible, Powerful - HERE!
    KT - Command: Simplify writing commands - HERE
    KT - NbUtil: Make your kotlin easier - HERE
    KT - Hopping Islands: From Java to Kotlin - P1 - P2 - P3 - P4 - P5
    Reply With Quote  
     

  5. #25  
    Extreme Donator

    nbness2's Avatar
    Join Date
    Aug 2011
    Posts
    692
    Thanks given
    274
    Thanks received
    139
    Rep Power
    430
    Update 2019/07/30

    Updated NumberUtil from 1.3-0 to 1.4-0
    • Added MutableNumberPair through MutableNumberQuad for all number types
    • Added helpers to go from Pair<NumberType, NumberType> to NumberTypePair, MutableNumberTypePair and DenseNumberTypePair (where applicable)
    • Standardized toString outputs to be the same as Pair<NumberType, NumberType>.toString()
    • Added ExclusionRange
      • Essentially opposite of ClosedRange, check if a number is OUTSIDE of that range
      • Instead of 7 in (5 excludedTo 10) -> false as it is INSIDE the range rather than OUTSIDE the range
    • Added NumberTypeRange, MutableNumberTypeRange and DenseNumberTypeRange (where applicable)



    Updated InputUtil from 1.1-0 to 1.2-0
    • Added AdvancedInputBuilder
      • Lets you create AdvancedInput in a way that is easier to make sense of


    NumberUtil: SOURCE/JAR
    InputUtil: SOURCE/JAR
    KT/JAVA - NBX 637 - HERE!
    KT - Drop table 4: Flexible, Powerful - HERE!
    KT - Command: Simplify writing commands - HERE
    KT - NbUtil: Make your kotlin easier - HERE
    KT - Hopping Islands: From Java to Kotlin - P1 - P2 - P3 - P4 - P5
    Reply With Quote  
     

  6. #26  
    Registered Member west7man's Avatar
    Join Date
    Jun 2008
    Age
    34
    Posts
    149
    Thanks given
    1
    Thanks received
    2
    Rep Power
    21
    Most of these things have been existing in Java long before.
    Reply With Quote  
     

  7. #27  
    Extreme Donator

    nbness2's Avatar
    Join Date
    Aug 2011
    Posts
    692
    Thanks given
    274
    Thanks received
    139
    Rep Power
    430
    Update 2021/06/23

    All of these that rely on any other libs, the libs will be included in the repo and the full package will be included in the download postfixed with `all`

    These libraries are designed to be VERY VERY scripting api friendly with their DSLs

    Added arguments: https://bitbucket.org/nbutil/arguments/
    • Meant to be a generic argument ish library, I'm sure there are other solutions out there but I created my own.
    • Definitely can be cleaned up, but a few other libraries rely on it so I will keep it as it is right now


    Added requirement: https://bitbucket.org/nbutil/requirement/
    • Meant to be a library for DSL-izing requirements and allowing them to be a lot more flexible and modular
    • No more typo bugs that only affect some things, your requirements are now universal and a bug fix in a requirement will "fix" that bug wherever else that requirement was used!
    • Depends on arguments


    Added producerUtil: https://bitbucket.org/nbutil/producerutil/
    • Meant to be a library for generalizing and easily adapting things that produce something
    • Comes with a generic producer builder that you can THEORETICALLY emulate any producer with
    • Originally only contained in DropTable, I will be using it a lot of other places
    • Depends on arguments


    Added command: https://bitbucket.org/nbutil/command/
    • Completely rewritten and stripped down (but more flexible and powerful) version of Action
    KT/JAVA - NBX 637 - HERE!
    KT - Drop table 4: Flexible, Powerful - HERE!
    KT - Command: Simplify writing commands - HERE
    KT - NbUtil: Make your kotlin easier - HERE
    KT - Hopping Islands: From Java to Kotlin - P1 - P2 - P3 - P4 - P5
    Reply With Quote  
     

Page 3 of 3 FirstFirst 123

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Replies: 21
    Last Post: 12-07-2017, 09:08 AM
  2. Replies: 20
    Last Post: 10-30-2012, 10:35 PM
  3. Replies: 4
    Last Post: 05-16-2007, 07:50 AM
  4. Replies: 7
    Last Post: 05-14-2007, 08:19 PM
  5. Replies: 6
    Last Post: 05-09-2007, 12:35 AM
Tags for this Thread

View Tag Cloud

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •