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>, int) - Method in BlockingQueueExtensions
Drain at most the given number of elements into a new list which is returned.

E

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

FileExtensions - Class in nz.net.ultraq.groovy.extensions
Extensions to the File class.
FileExtensions() - Constructor in FileExtensions
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.
getNameWithoutExtension(java.io.File) - Method in FileExtensions
Returns the file name, but without any extension part.
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.

H

I

InputStreamExtensions - Class in nz.net.ultraq.groovy.extensions
Extensions to Java's InputStream classes.
InputStreamExtensions() - Constructor in InputStreamExtensions

J

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

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

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.

T

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
Wrap an input stream with a buffered reader and invoke the usual withReader method over it.
withBufferedStream(java.io.InputStream, Closure<T>) - Method in InputStreamExtensions
Wrap an input stream with a buffered one and invoke 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 _