just a bunch of small java utils to make my life easier
dependencies {
compile 'net.swisstech:swissarmyknife:+'
}
<dependency>
<groupId>net.swisstech</groupId>
<artifactId>swissarmyknife</artifactId>
<version>...</version>
</dependency>
- use gradle java-library instead of java
- fix dependency type to logger, use api instead of implementation
- various fixes, refactorings, new features
- switch to sonatype ossrh to pulish to maven central
- added
AbstractCharSequence.compareTo
- added
Stack.size
&Stack.clear
- added
Writers
since we already haveReaders
- added
Floats
&Doubles
since we already haveIntegers
,Longs
,Bytes
andCharacters
- moved
InputStreams
toio
package - removed
Numbers
** movedtryParse*
into the individual type-specific classes ** addedtryParse
for the other classes ** there is noCharacter.parseCharacter
and thus noCharacters.tryParse
- refactor
Randoms
** changed from a static util into extendingSecureRandom
so it's possible for the user to seed it ** addednext{Int|Double|Long|Float}Incluse
methods - cleanup
Preconditions
** remove String check, useStrings
instead ** return theURL
fromensureUrl
** remove all@Deprecated
, that was a stupid idea (for example renamingensureNull()
tonull()
) - changed
Abstract{Int|Long|Double}.compareTo
to use{Integer|Long|Double}.compare
, was the only dependency toch.bind.philib
- removed dependency to
ch.bind.philib
- testing
** added
TeeOutputStreamTest
- added
Strings.breakString
(will misbehave, doesn't handle edge cases) - added
InputStreams.waitForOutput
- added
BackgroundProcess.waitForStringInStd{our|err}
- cleanup
ProcessWrapper
** fix in/out/err redirecting ** fixkill
method - didn't properly get the PID - cleanup
DtoTesterUtil
- cleanup
PrivateConstructor
- cleanup
SimpleHttpServerClassloaderFileServer
- removed
Iso639
code - removed
javax.xml
fromCloseables
for android compatibility