A B C D E F G H I J K L M N O P Q R S T U V W X Y Z _

A

acquireAndRelease(java.util.concurrent.Semaphore, Closure<T>) - Method in SemaphoreExtensions
Acquire and release a single permit around the given closure.
advance(java.nio.Buffer, int) - Method in BufferExtensions
Advance the internal position of a buffer by the given amount.
advance(java.nio.ShortBuffer, int) - Method in ShortBufferExtensions
Advance the internal position of a buffer by the given amount.
allocateNative(java.nio.ByteBuffer, int) - Method in ByteBufferStaticExtensions
Allocates a ByteBuffer with native byte ordering.

B

BlockingQueueExtensions - Class in nz.net.ultraq.groovy.extensions
Extensions to the BlockingQueue interface.
BlockingQueueExtensions() - Constructor in BlockingQueueExtensions
BufferExtensions - Class in nz.net.ultraq.groovy.extensions
Instance method extensions to all Buffer classes.
BufferExtensions() - Constructor in BufferExtensions
ByteArrayExtensions - Class in nz.net.ultraq.groovy.extensions
Extensions for byte arrays.
ByteArrayExtensions() - Constructor in ByteArrayExtensions
ByteBufferExtensions - Class in nz.net.ultraq.groovy.extensions
Instance method extensions to the ByteBuffer class.
ByteBufferExtensions() - Constructor in ByteBufferExtensions
ByteBufferStaticExtensions - Class in nz.net.ultraq.groovy.extensions
Static method extensions to the ByteBuffer class.
ByteBufferStaticExtensions() - Constructor in ByteBufferStaticExtensions

C

cancel(java.util.concurrent.Future) - Method in FutureExtensions
Call Future.cancel with a default argument of false.
clamp(java.lang.Math, float, float, float) - Method in MathStaticExtensions
Clamp a float value to the given range.

D

DataInputExtensions - Class in nz.net.ultraq.groovy.extensions
Extensions to IO classes that support the DataInput interface.
DataInputExtensions() - Constructor in DataInputExtensions
drain(BlockingQueue<E>, List<E>, int) - Method in BlockingQueueExtensions
Drain at most the given number of elements, either to a new list or a supplied one, which is also returned.

E

EnumExtensions - Class in nz.net.ultraq.groovy.extensions
Extensions for the Enum class.
EnumExtensions() - Constructor in EnumExtensions
executeAndShutdown(java.util.concurrent.ExecutorService, int, java.util.concurrent.TimeUnit, Closure<T>) - Method in ExecutorServiceExtensions
Execute the given closure, performing a shutdown after it has exited (see shutdownAwaitTermination(ExecutorService, int, TimeUnit)).
ExecutorServiceExtensions - Class in nz.net.ultraq.groovy.extensions
Extensions to the ExecutorService interface.
ExecutorServiceExtensions() - Constructor in ExecutorServiceExtensions

F

fromBuffers(java.nio.ByteBuffer, java.nio.ByteBuffer) - Method in ByteBufferStaticExtensions
Allocate a native-ordered ByteBuffer, with data from several other ByteBuffers.
FutureExtensions - Class in nz.net.ultraq.groovy.extensions
Extensions to the Future interface.
FutureExtensions() - Constructor in FutureExtensions

G

getByte(java.nio.ByteBuffer) - Method in ByteBufferExtensions
An alias for ByteBuffer.get so that its shortened Groovy getter form looks consistent alongside the other shortened getters like short, int, etc.
getOrCreate(Map<K, V>, K, Closure<V>) - Method in MapExtensions
Very similar to Groovy's Map.get(Object key, Object defaultValue) method, but allows the default value to be created in a closure.
getOrCreate(java.lang.Object, java.lang.String, Closure<T>) - Method in ObjectExtensions
Retrieves a value from any object that supports the subscript operators (square bracket notation, implemented by the getAt/putAt methods).
getResourceAsFile(java.lang.Object, java.lang.String) - Method in ResourceExtensions
A shortcut to new File(ClassLoader.getResource.toURI()).
getResourceAsStream(java.lang.Object, java.lang.String) - Method in ResourceExtensions
A shortcut to ClassLoader.getResourceAsStream.
getResourceAsText(java.lang.Object, java.lang.String) - Method in ResourceExtensions
A combination getResourceAsStream followed by a .getText() call.
getUnsignedByte(java.nio.ByteBuffer, int) - Method in ByteBufferExtensions
Shorthand for ByteBuffer.get(index) & 0xff, ensuring that a byte value when made an int remains unsigned.
getUnsignedShort(java.nio.ByteBuffer, int) - Method in ByteBufferExtensions
Shorthand for ByteBuffer.getShort(index) & 0xffff, ensuring that a short value when made an int remains unsigned.

H

I

InputStreamExtensions - Class in nz.net.ultraq.groovy.extensions
Extensions to Java's InputStream classes.
InputStreamExtensions() - Constructor in InputStreamExtensions
isArm64(java.lang.System) - Method in OperatingSystemExtensions
Return whether the current processor has a 64-bit ARM architecture.
isMacOs(java.lang.System) - Method in OperatingSystemExtensions
Return whether the current OS is macOS.
isWindows(java.lang.System) - Method in OperatingSystemExtensions
Return whether the current OS is Windows.

J

joinAndNormalize(List<String>, java.lang.String) - Method in StringExtensions
The same as a standard join method, but removes any double-ups of the separator in cases when some parts already contain it.

K

L

M

MapExtensions - Class in nz.net.ultraq.groovy.extensions
Extensions to the Map interface.
MapExtensions() - Constructor in MapExtensions
markAndReset(java.nio.ByteBuffer, Closure<T>) - Method in ByteBufferExtensions
Convenience method for calling ByteBuffer.mark, executing the closure, and then calling ByteBuffer.reset before returning.
markAndReset(I, int, Closure<T>) - Method in InputStreamExtensions
Convenience method for calling InputStream.mark, executing the closure, and then calling InputStream.reset before returning.
MathStaticExtensions - Class in nz.net.ultraq.groovy.extensions
Static method extensions to the Math class.
MathStaticExtensions() - Constructor in MathStaticExtensions

N

next(Enum<E>) - Method in EnumExtensions
Returns the next enum value in the sequence of enums of this type, wrapping back to the first enum when the end of the sequence is reached.

O

ObjectExtensions - Class in nz.net.ultraq.groovy.extensions
Extensions to the base Object class.
ObjectExtensions() - Constructor in ObjectExtensions
ObjectStaticExtensions - Class in nz.net.ultraq.groovy.extensions
Static extensions to the base Object class.
ObjectStaticExtensions() - Constructor in ObjectStaticExtensions
OperatingSystemExtensions - Class in nz.net.ultraq.groovy.extensions
Extensions to the `System` class to add convenience methods for querying the current platform.
OperatingSystemExtensions() - Constructor in OperatingSystemExtensions

P

put(java.nio.ByteBuffer, java.nio.ByteBuffer, int) - Method in ByteBufferExtensions
A relative bulk put method using another ByteBuffer but only reading up to length bytes from that buffer.

Q

R

readBytes(java.io.DataInput, int) - Method in DataInputExtensions
Read up to the specified number of bytes, returning them in a byte[].
ResourceExtensions - Class in nz.net.ultraq.groovy.extensions
Extensions to classes to be able to read resources more easily.
ResourceExtensions() - Constructor in ResourceExtensions
reverse(byte[]) - Method in ByteArrayExtensions
Return a new array of the items in this array but in reverse order.

S

SemaphoreExtensions - Class in nz.net.ultraq.groovy.extensions
Extension methods for the Semaphore concurrency utility.
SemaphoreExtensions() - Constructor in SemaphoreExtensions
ShortBufferExtensions - Class in nz.net.ultraq.groovy.extensions
Instance method extensions to the ShortBuffer class.
ShortBufferExtensions() - Constructor in ShortBufferExtensions
shutdownAwaitTermination(java.util.concurrent.ExecutorService, int, java.util.concurrent.TimeUnit) - Method in ExecutorServiceExtensions
Initiate a shutdown, waiting the specified amount of time before forcing termination.
split(java.nio.ByteBuffer, int) - Method in ByteBufferExtensions
Split a buffer into several smaller buffers of the specified size.
StringExtensions - Class in nz.net.ultraq.groovy.extensions
Additional String methods.
StringExtensions() - Constructor in StringExtensions

T

toKebabCase(java.lang.String) - Method in StringExtensions
Convert a string from any of the supported cases to kebab-case.
toPascalCase(java.lang.String) - Method in StringExtensions
Convert a string from any of the supported cases to PascalCase.
toSentenceCase(java.lang.String, boolean) - Method in StringExtensions
Convert a string from any of the supported cases to Sentence case, with an option to capitalize each word in the sentence (so it becomes Sentence Case).
tryAcquireAndRelease(java.util.concurrent.Semaphore, Closure<T>) - Method in SemaphoreExtensions
Using Semaphore.tryAcquire, execute the closure and release the semaphore if tryAcquire returned true.

U

V

W

with(java.lang.Object, java.lang.Class, Closure<T>) - Method in ObjectStaticExtensions
Similar to Object.with, but with the ability to use a static class instead of an object instance so methods within the closure are invoked on the static class.
withBufferedReader(java.io.InputStream, Closure<T>) - Method in InputStreamExtensions
Ensure an input stream is a BufferedInputStream, wrapping it in one if necessary, before invoking the usual withReader method over it.
withBufferedStream(java.io.InputStream, Closure<T>) - Method in InputStreamExtensions
Ensure an input stream is a BufferedInputStream, wrapping it in one if necessary, before invoking the usual withStream method over it.
wrap(java.lang.Math, float, float, float) - Method in MathStaticExtensions
Wrap a float value within a certain range.
wrapNative(java.nio.ByteBuffer, byte[], int, int) - Method in ByteBufferStaticExtensions
Wraps a byte[] in a ByteBuffer with native byte ordering.

X

Y

Z

_

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z _