A C D E F G H I J M N O P R S T W

A

Arguments - Class in com.tomgibara.pronto.util
Holds static methods for performing common checks on method parameters.
autoToString(Object) - Static method in class com.tomgibara.pronto.util.Objects
Attempts to provide a meaningful string representation of any object by reflecting on the available getter methods.

C

capsToHyphens(String) - Static method in class com.tomgibara.pronto.util.Reflect
Converts a studleyCaps string (with or without an initial capital) into a hyphenated lower-case string.
CharStreams - Class in com.tomgibara.pronto.util
A collection of static methods for handling readers and writers.
Classes - Class in com.tomgibara.pronto.util
Collects together utility methods for handling class objects.
classForPrimitive(Class) - Static method in class com.tomgibara.pronto.util.Classes
Identifies the object class which corresponds to a specified primitive class, or throws an exception.
com.tomgibara.pronto.util - package com.tomgibara.pronto.util
 
compareTo(Object) - Method in class com.tomgibara.pronto.util.Duration
Durations ordered by time.

D

defaultConstructor(Class) - Static method in class com.tomgibara.pronto.util.Reflect
Returns the default (no-argument) constructor for the supplied class or null if it's not available.
Duration - Class in com.tomgibara.pronto.util
This class may be used to convert between a textual representation for a unit of time and its millisecond equivalent or vice versa.
Duration(String) - Constructor for class com.tomgibara.pronto.util.Duration
Creates a duration from its string representation.
Duration(long) - Constructor for class com.tomgibara.pronto.util.Duration
Creates a duration from a number of milliseconds.

E

equal(Object, Object) - Static method in class com.tomgibara.pronto.util.Objects
Tests whether two objects, both of which may be null, are equal.
equals(Object) - Method in class com.tomgibara.pronto.util.Duration
Equality is predicated on the millisecond time field.

F

FactoryHelper<T> - Class in com.tomgibara.pronto.util
This class can be extended to provide a factory implementation that:
FactoryHelper(String, ClassLoader, String) - Constructor for class com.tomgibara.pronto.util.FactoryHelper
Constructs a new factory which will create an instance of the class specified by either the value of the specified system property, or the supplied class name - exactly one of which may be null.

G

getInstance() - Method in class com.tomgibara.pronto.util.FactoryHelper
The object instance created by this factory.
getMonitor() - Method in class com.tomgibara.pronto.util.Waiter
The monitor on which this object will wait for changes in condition.
getters(Method[]) - Static method in class com.tomgibara.pronto.util.Reflect
Filters an array of methods, selecting only the non-void getXXX and isXXX methods with no arguments.
getTime() - Method in class com.tomgibara.pronto.util.Duration
The time which was passed to the constructor, or in the case that a string was supplied, the number of milliseconds to which the string equates.

H

handleInterruption(InterruptedException) - Method in class com.tomgibara.pronto.util.Waiter
This method is called when an interruption occurs while waiting.
hashCode() - Method in class com.tomgibara.pronto.util.Duration
 
hashCode(Object) - Static method in class com.tomgibara.pronto.util.Objects
The hash code of the object or zero for null.

I

isBooleanPrimitive(Class) - Static method in class com.tomgibara.pronto.util.Classes
Whether the supplied class represents the boolean primitive.
isMet() - Method in interface com.tomgibara.pronto.util.Waiter.Condition
 
isNonVoidPrimitive(Class) - Static method in class com.tomgibara.pronto.util.Classes
Whether the class is strictly primitive - not including the Void.TYPE.
isNumberPrimitive(Class) - Static method in class com.tomgibara.pronto.util.Classes
Whether the supplied class represents a number primitive.

J

join(Object[], String) - Static method in class com.tomgibara.pronto.util.Strings
Joins the string representations of an array of objects into a single string, separating them with the supplied delimiter.

M

matchingConstructor(Class, Class[]) - Static method in class com.tomgibara.pronto.util.Reflect
Identifies the public constructor to which Java would dispatch the supplied array of types.

N

notEmpty(String, String) - Static method in class com.tomgibara.pronto.util.Arguments
Tests whether the supplied string parameter is not null and not the empty string.
notEqual(Object, Object) - Static method in class com.tomgibara.pronto.util.Objects
Tests whether two objects, both of which may be null, are equal.
notNegative(long, String) - Static method in class com.tomgibara.pronto.util.Arguments
Tests whether the supplied long parameter is not negative.
notNull(Object, String) - Static method in class com.tomgibara.pronto.util.Arguments
Tests whether the supplied parameter is null.

O

Objects - Class in com.tomgibara.pronto.util
A collection of static utility methods which help with the methods declared by the Object class.

P

parseProperties(String) - Static method in class com.tomgibara.pronto.util.Strings
Constructs a map of strings from a single string as follows: 1) The string is split at each semicolon.
propertyName(String) - Static method in class com.tomgibara.pronto.util.Reflect
Converts a method name into a propery name by trimming the 'set', 'get' or 'is' prefix and then converting capital letters to hyphens.

R

Reflect - Class in com.tomgibara.pronto.util
Collection of static method to help with handling reflective code.

S

safeClose(Reader) - Static method in class com.tomgibara.pronto.util.CharStreams
Attempts to close the supplied reader.
safeClose(Writer) - Static method in class com.tomgibara.pronto.util.CharStreams
Attempts to close the supplied writer.
safeClose(InputStream) - Static method in class com.tomgibara.pronto.util.Streams
Attempts to close the specified input stream.
safeClose(OutputStream) - Static method in class com.tomgibara.pronto.util.Streams
Attempts to close the specified output stream.
setters(Method[]) - Static method in class com.tomgibara.pronto.util.Reflect
Filters an array of methods, selecting only the void setXXX methods with one argument.
splitCommas(String) - Static method in class com.tomgibara.pronto.util.Strings
Splits a single string into a list of strings as follows: 1) The string is split at each comma.
Streams - Class in com.tomgibara.pronto.util
A collection of static methods for handling streams.
Strings - Class in com.tomgibara.pronto.util
A collection of static utility methods for processing strings.

T

toString() - Method in class com.tomgibara.pronto.util.Duration
 
toString(Object) - Static method in class com.tomgibara.pronto.util.Objects
The object as a string (using toString) or null if the supplied object is null.
transfer(InputStream, OutputStream, byte[]) - Static method in class com.tomgibara.pronto.util.Streams
Transfers bytes from an input stream to an output stream.

W

Waiter - Class in com.tomgibara.pronto.util
An instance of this object can wait on an object's monitor until a condition is met, or a given number of milliseconds has elapsed - which ever occurs soonest.
Waiter(Object) - Constructor for class com.tomgibara.pronto.util.Waiter
Creates a new waiter for waiting on the supplied object.
Waiter.Condition - Interface in com.tomgibara.pronto.util
Implementations of this interface are supplied to a Waiter and control when the object may cease waiting.
waitForCondition(long, Waiter.Condition) - Method in class com.tomgibara.pronto.util.Waiter
This method will cause the calling thread to wait until the specified condtion is met or a timeout occurs, which ever is soonest.

A C D E F G H I J M N O P R S T W

Copyright © 2006-2007 Tom Gibara. All Rights Reserved.