A B C D E F G H I L M N O P Q R S T U V W 

A

abortPendingOffers() - Method in class com.cloudhopper.commons.util.windowing.Window
Aborts all current callers/threads waiting for a pending offer to be accepted by the window.
accept(File) - Method in class com.cloudhopper.commons.util.filefilter.CompositeFileFilter
 
accept(File) - Method in class com.cloudhopper.commons.util.filefilter.FileExtensionFilter
Accepts a File by its file extension.
accept(File) - Method in class com.cloudhopper.commons.util.filefilter.FileNameDateTimeFilter
 
accept(File) - Method in class com.cloudhopper.commons.util.filefilter.FileNameEndsWithFilter
Accepts a File if its filename endsWith a specific string.
accept(File) - Method in class com.cloudhopper.commons.util.filefilter.FileNameStartsWithFilter
Accepts a File if its filename startsWith a specific string.
actualValue - Variable in class com.cloudhopper.commons.util.MetaFieldInfo
 
add(Object, Object) - Method in class com.cloudhopper.commons.util.BeanProperty
Adds the property value on the object.
add(byte) - Method in class com.cloudhopper.commons.util.ByteBuffer
Adds one byte to the buffer and throws an exception if the buffer is full.
add(byte[]) - Method in class com.cloudhopper.commons.util.ByteBuffer
Adds a byte array to this buffer.
add(byte[], int, int) - Method in class com.cloudhopper.commons.util.ByteBuffer
Adds a byte array to this buffer starting from the offset up to the length requested.
add(long) - Method in class com.cloudhopper.commons.util.RunningTotal
Adds a new value to our running total.
addBuffer() - Method in class com.cloudhopper.commons.util.FastByteArrayOutputStream
Create a new buffer and store the current one in linked list
addFirst() - Method in class com.cloudhopper.commons.util.CircularIndex
Adds an element to the front of the index if its not full.
addLast() - Method in class com.cloudhopper.commons.util.CircularIndex
Adds an element to the back of the index if its not full.
addListener(WindowListener<K, R, P>) - Method in class com.cloudhopper.commons.util.windowing.Window
Adds a new WindowListener if and only if it isn't already present.
addOrSet(Object, Object) - Method in class com.cloudhopper.commons.util.BeanProperty
Adds or Sets the property value on the object.
AddressFormatException - Exception in com.cloudhopper.commons.util
Thrown when an invalid Address format is used.
AddressFormatException(String) - Constructor for exception com.cloudhopper.commons.util.AddressFormatException
 
AddressFormatException(String, Throwable) - Constructor for exception com.cloudhopper.commons.util.AddressFormatException
 
append(CharSequence) - Method in class com.cloudhopper.commons.util.codec.URLDecoder
 
append(char) - Method in class com.cloudhopper.commons.util.codec.URLDecoder
 
append(CharSequence, int, int) - Method in class com.cloudhopper.commons.util.codec.URLDecoder
 
append(CharSequence) - Method in class com.cloudhopper.commons.util.codec.URLEncoder
 
append(char) - Method in class com.cloudhopper.commons.util.codec.URLEncoder
 
append(CharSequence, int, int) - Method in class com.cloudhopper.commons.util.codec.URLEncoder
 
appendHexString(StringBuilder, byte[]) - Static method in class com.cloudhopper.commons.util.HexUtil
Appends a byte array to a StringBuilder with each byte in a "Big Endian" hexidecimal format.
appendHexString(StringBuilder, byte[], int, int) - Static method in class com.cloudhopper.commons.util.HexUtil
Appends a byte array to a StringBuilder with each byte in a "Big Endian" hexidecimal format.
appendHexString(StringBuilder, byte) - Static method in class com.cloudhopper.commons.util.HexUtil
Appends 2 characters to a StringBuilder with the byte in a "Big Endian" hexidecimal format.
appendHexString(StringBuilder, short) - Static method in class com.cloudhopper.commons.util.HexUtil
Appends 4 characters to a StringBuilder with the short in a "Big Endian" hexidecimal format.
appendHexString(StringBuilder, int) - Static method in class com.cloudhopper.commons.util.HexUtil
Appends 8 characters to a StringBuilder with the int in a "Big Endian" hexidecimal format.
appendHexString(StringBuilder, long) - Static method in class com.cloudhopper.commons.util.HexUtil
Appends 16 characters to a StringBuilder with the long in a "Big Endian" hexidecimal format.
asBytes() - Method in class com.cloudhopper.commons.util.HexString
N.B.
assertValidGetKey(String) - Static method in class com.cloudhopper.commons.util.DigitLookupMap
 
assertValidGetKey(String) - Static method in class com.cloudhopper.commons.util.StringLookupMap
 
assertValidKey(String) - Static method in class com.cloudhopper.commons.util.DigitLookupMap
 
assertValidKey(String) - Static method in class com.cloudhopper.commons.util.StringLookupMap
 
assertValidPutKey(String) - Static method in class com.cloudhopper.commons.util.DigitLookupMap
 
assertValidPutKey(String) - Static method in class com.cloudhopper.commons.util.StringLookupMap
 
asString() - Method in class com.cloudhopper.commons.util.HexString
 
await() - Method in class com.cloudhopper.commons.util.windowing.DefaultWindowFuture
 
await(long) - Method in class com.cloudhopper.commons.util.windowing.DefaultWindowFuture
 
await() - Method in interface com.cloudhopper.commons.util.windowing.WindowFuture
Waits for this future to be completed within the amount of time remaining from the original offerTimeoutMillis minus the amount of time it took for the Window to accept the offer.
await(long) - Method in interface com.cloudhopper.commons.util.windowing.WindowFuture
Waits for this future to be completed within the specified time limit.

B

Base64Codec - Class in com.cloudhopper.commons.util.codec
Code originally copied from the OpenDS Java project.
bb - Variable in class com.cloudhopper.commons.util.codec.URLDecoder
 
bb - Variable in class com.cloudhopper.commons.util.codec.URLEncoder
 
BeanProperty - Class in com.cloudhopper.commons.util
Represents a "bean" property for a class.
BeanProperty(String, Class, Field) - Constructor for class com.cloudhopper.commons.util.BeanProperty
 
BeanUtil - Class in com.cloudhopper.commons.util
This class implements utilities for working with classes.
BeanUtil() - Constructor for class com.cloudhopper.commons.util.BeanUtil
 
BufferException - Exception in com.cloudhopper.commons.util
 
BufferException() - Constructor for exception com.cloudhopper.commons.util.BufferException
Creates a new instance of BufferException without detail message.
BufferException(String) - Constructor for exception com.cloudhopper.commons.util.BufferException
Constructs an instance of BufferException with the specified detail message.
BufferIsEmptyException - Exception in com.cloudhopper.commons.util
 
BufferIsEmptyException() - Constructor for exception com.cloudhopper.commons.util.BufferIsEmptyException
Creates a new instance of BufferIsEmptyException without detail message.
BufferIsEmptyException(String) - Constructor for exception com.cloudhopper.commons.util.BufferIsEmptyException
Constructs an instance of BufferIsEmptyException with the specified detail message.
BufferIsFullException - Exception in com.cloudhopper.commons.util
 
BufferIsFullException() - Constructor for exception com.cloudhopper.commons.util.BufferIsFullException
Creates a new instance of BufferIsFullException without detail message.
BufferIsFullException(String) - Constructor for exception com.cloudhopper.commons.util.BufferIsFullException
Constructs an instance of BufferIsFullException with the specified detail message.
BufferSizeException - Exception in com.cloudhopper.commons.util
 
BufferSizeException() - Constructor for exception com.cloudhopper.commons.util.BufferSizeException
Creates a new instance of BufferSizeException without detail message.
BufferSizeException(String) - Constructor for exception com.cloudhopper.commons.util.BufferSizeException
Constructs an instance of BufferSizeException with the specified detail message.
ByteArrayUtil - Class in com.cloudhopper.commons.util
Utility class for working with byte arrays such as converting between byte arrays and numbers.
ByteArrayUtil() - Constructor for class com.cloudhopper.commons.util.ByteArrayUtil
 
ByteBuffer - Class in com.cloudhopper.commons.util
This class implements a capacity constrained ByteBuffer using a circular array of bytes.
ByteBuffer() - Constructor for class com.cloudhopper.commons.util.ByteBuffer
Constructs a new instance of ByteBuffer with an initial default capacity of 1024 bytes (DEFAULT_BUFFER_CAPACITY)
ByteBuffer(int) - Constructor for class com.cloudhopper.commons.util.ByteBuffer
Constructs a new instance of ByteBuffer with the specified capacity.
ByteBuffer(byte[]) - Constructor for class com.cloudhopper.commons.util.ByteBuffer
Constructs a new instance of ByteBuffer with a capacity only large enough to hold they byte array.
ByteBuffer(byte[], int) - Constructor for class com.cloudhopper.commons.util.ByteBuffer
Constructs a new instance of ByteBuffer with the specified capacity.
ByteBuffer(byte[], int, int) - Constructor for class com.cloudhopper.commons.util.ByteBuffer
Constructs a new instance of ByteBuffer with the specified capacity.
ByteBuffer(byte[], int, int, int) - Constructor for class com.cloudhopper.commons.util.ByteBuffer
Constructs a new instance of ByteBuffer with the specified capacity.
ByteBuffer(String) - Constructor for class com.cloudhopper.commons.util.ByteBuffer
Constructs a new instance of ByteBuffer.
ByteBuffer(String, int) - Constructor for class com.cloudhopper.commons.util.ByteBuffer
Constructs a new instance of ByteBuffer with the specified capacity.
ByteUtil - Class in com.cloudhopper.commons.util
Utility class for methods to handle bytes.
ByteUtil() - Constructor for class com.cloudhopper.commons.util.ByteUtil
 

C

calculateNewIndex(long, long) - Method in class com.cloudhopper.commons.util.CircularIndex
 
CALLER_NOT_WAITING - Static variable in interface com.cloudhopper.commons.util.windowing.WindowFuture
The caller is not waiting on this entry
CALLER_WAITING - Static variable in interface com.cloudhopper.commons.util.windowing.WindowFuture
The caller is waiting on this entry
CALLER_WAITING_TIMEOUT - Static variable in interface com.cloudhopper.commons.util.windowing.WindowFuture
The caller was waiting, but gave up (timeout)
canAdd() - Method in class com.cloudhopper.commons.util.BeanProperty
Returns whether the "add" method would succeed or throw an exception.
canAddOrSet() - Method in class com.cloudhopper.commons.util.BeanProperty
Returns whether the "addOrSet" method would succeed or throw an exception.
cancel() - Method in class com.cloudhopper.commons.util.windowing.DefaultWindowFuture
 
cancel(long) - Method in class com.cloudhopper.commons.util.windowing.DefaultWindowFuture
 
cancel(K) - Method in class com.cloudhopper.commons.util.windowing.Window
Cancels (completes) a request.
cancel() - Method in interface com.cloudhopper.commons.util.windowing.WindowFuture
Completes (as a cancel) a request.
cancel(long) - Method in interface com.cloudhopper.commons.util.windowing.WindowFuture
Completes (as a cancel) a request.
cancelAll() - Method in class com.cloudhopper.commons.util.windowing.Window
Cancels (completes) all requests.
cancelAllExpired() - Method in class com.cloudhopper.commons.util.windowing.Window
Cancels (completes) all expired requests.
canGet() - Method in class com.cloudhopper.commons.util.BeanProperty
Returns whether the "get" method would succeed or throw an exception.
canSet() - Method in class com.cloudhopper.commons.util.BeanProperty
Returns whether the "set" method would succeed or throw an exception.
capacity() - Method in class com.cloudhopper.commons.util.ByteBuffer
Gets the total buffer allocated capacity, not the remaining capacity.
capitalize(String) - Static method in class com.cloudhopper.commons.util.StringUtil
Safely capitalizes a string by converting the first character to upper case.
cb - Variable in class com.cloudhopper.commons.util.codec.URLDecoder
 
cb - Variable in class com.cloudhopper.commons.util.codec.URLEncoder
 
cd - Variable in class com.cloudhopper.commons.util.codec.URLDecoder
 
ce - Variable in class com.cloudhopper.commons.util.codec.URLEncoder
 
charset - Variable in class com.cloudhopper.commons.util.codec.URLDecoder
 
charset - Variable in class com.cloudhopper.commons.util.codec.URLEncoder
 
checkBytes(byte[], int, int, int) - Static method in class com.cloudhopper.commons.util.ByteArrayUtil
 
checkBytesNotNull(byte[]) - Static method in class com.cloudhopper.commons.util.ByteArrayUtil
 
checkOffsetLength(int, int, int) - Static method in class com.cloudhopper.commons.util.ByteBuffer
Helper method for validating if an offset and length are valid for a given byte array.
CircularIndex - Class in com.cloudhopper.commons.util
Utility class for maintaining a circular index of a fixed capacity.
CircularIndex(long) - Constructor for class com.cloudhopper.commons.util.CircularIndex
Creates a circular index based on a fixed capacity of elements.
CircularIndex(long, boolean) - Constructor for class com.cloudhopper.commons.util.CircularIndex
 
CircularIndex(long, long, long) - Constructor for class com.cloudhopper.commons.util.CircularIndex
 
CircularIndex(long, long, long, boolean) - Constructor for class com.cloudhopper.commons.util.CircularIndex
Creates a circular index based on a fixed capacity of elements.
ClassUtil - Class in com.cloudhopper.commons.util
This class implements utilities for working with classes.
ClassUtil() - Constructor for class com.cloudhopper.commons.util.ClassUtil
 
clear() - Method in class com.cloudhopper.commons.util.ByteBuffer
Clears the buffer and resets it.
clear() - Method in interface com.cloudhopper.commons.util.LoadBalancedList
Clears all entries from the list.
clear() - Method in class com.cloudhopper.commons.util.RoundRobinLoadBalancedList
 
close() - Method in class com.cloudhopper.commons.util.codec.URLDecoder
 
close() - Method in class com.cloudhopper.commons.util.codec.URLEncoder
 
close() - Method in class com.cloudhopper.commons.util.FastByteArrayOutputStream
 
com.cloudhopper.commons.util - package com.cloudhopper.commons.util
 
com.cloudhopper.commons.util.annotation - package com.cloudhopper.commons.util.annotation
 
com.cloudhopper.commons.util.codec - package com.cloudhopper.commons.util.codec
 
com.cloudhopper.commons.util.filefilter - package com.cloudhopper.commons.util.filefilter
 
com.cloudhopper.commons.util.time - package com.cloudhopper.commons.util.time
 
com.cloudhopper.commons.util.windowing - package com.cloudhopper.commons.util.windowing
 
compare(Level) - Method in enum com.cloudhopper.commons.util.annotation.Level
Compares the current instance to the level passed in as a parameter.
compare(File, File) - Method in class com.cloudhopper.commons.util.FileUtil.FileNameDateTimeComparator
 
complete(P) - Method in class com.cloudhopper.commons.util.windowing.DefaultWindowFuture
 
complete(P, long) - Method in class com.cloudhopper.commons.util.windowing.DefaultWindowFuture
 
complete(K, P) - Method in class com.cloudhopper.commons.util.windowing.Window
Successfully completes a request by setting the response on the associated future.
complete(P) - Method in interface com.cloudhopper.commons.util.windowing.WindowFuture
Completes (as a success) a request by setting the response.
complete(P, long) - Method in interface com.cloudhopper.commons.util.windowing.WindowFuture
Completes (as a success) a request by setting the response.
CompositeFileFilter - Class in com.cloudhopper.commons.util.filefilter
Filters a file based on a composition of several other filters.
CompositeFileFilter(FileFilter[]) - Constructor for class com.cloudhopper.commons.util.filefilter.CompositeFileFilter
 
compress(File, String, boolean) - Static method in class com.cloudhopper.commons.util.CompressionUtil
Compresses the source file using a variety of supported compression algorithms.
compress(File, File, String, boolean) - Static method in class com.cloudhopper.commons.util.CompressionUtil
Compresses the source file using a variety of supported compression algorithms.
CompressionUtil - Class in com.cloudhopper.commons.util
Utility methods for compressing and uncompressing a file.
CompressionUtil() - Constructor for class com.cloudhopper.commons.util.CompressionUtil
 
CompressionUtil.Algorithm - Enum in com.cloudhopper.commons.util
Enumeration of all supported compression algorithms by this utility.
compressQuotes(String, String) - Static method in class com.cloudhopper.commons.util.StringUtil
Compress 2 adjacent (single or double) quotes into a single (s or d) quote when found in the middle of a String.
contains(E) - Method in interface com.cloudhopper.commons.util.LoadBalancedList
Checks if the item is already contained in this list.
contains(E) - Method in class com.cloudhopper.commons.util.RoundRobinLoadBalancedList
 
contains(String[], String) - Static method in class com.cloudhopper.commons.util.StringUtil
Checks if the targetString is contained within the array of strings.
containsKey(K) - Method in class com.cloudhopper.commons.util.windowing.Window
Returns true if and only if a future with this key exists in this window.
containsOnlyDigits(String) - Static method in class com.cloudhopper.commons.util.StringUtil
Checks if a string contains only digits.
copy() - Method in class com.cloudhopper.commons.util.ByteBuffer
Most efficient copy of this ByteBuffer.
copy(int, int) - Method in class com.cloudhopper.commons.util.ByteBuffer
Most efficient copy of this ByteBuffer.
copy(int, int, int) - Method in class com.cloudhopper.commons.util.ByteBuffer
Most efficient copy of this ByteBuffer.
copy(DateTime) - Static method in class com.cloudhopper.commons.util.DateTimeUtil
Null-safe method of copying a DateTime
NOTE: The timestamp also should be in UTC.
copy(File, File) - Static method in class com.cloudhopper.commons.util.FileUtil
Copy the source file to the target file.
copy(File, File, boolean) - Static method in class com.cloudhopper.commons.util.FileUtil
Copy the source file to the target file while optionally permitting an overwrite to occur in case the target file already exists.
CountingRejectedExecutionHandler - Class in com.cloudhopper.commons.util
An implementation of a RejectedExecutionHandler that counts the number of times it has been called.
CountingRejectedExecutionHandler() - Constructor for class com.cloudhopper.commons.util.CountingRejectedExecutionHandler
 
create(DateTimeDuration, DateTime) - Static method in class com.cloudhopper.commons.util.time.DateTimePeriod
Creates a new period for the specified duration starting from the provided DateTime.
createCommonSystemProperties() - Static method in class com.cloudhopper.commons.util.EnvironmentUtil
Creates a Properties object containing common system properties that are determined using various Java routines.
createDay(int, int, int, DateTimeZone) - Static method in class com.cloudhopper.commons.util.time.DateTimePeriod
 
createDay(DateTime) - Static method in class com.cloudhopper.commons.util.time.DateTimePeriod
 
createDayHourMinSecPeriod(long) - Static method in class com.cloudhopper.commons.util.PeriodFormatterUtil
Creates a new Period that can be used properly with the "Uptime" styles returned by this utility class.
createFiveMinutes(int, int, int, int, int, DateTimeZone) - Static method in class com.cloudhopper.commons.util.time.DateTimePeriod
 
createFiveMinutes(DateTime) - Static method in class com.cloudhopper.commons.util.time.DateTimePeriod
 
createHour(int, int, int, int, DateTimeZone) - Static method in class com.cloudhopper.commons.util.time.DateTimePeriod
 
createHour(DateTime) - Static method in class com.cloudhopper.commons.util.time.DateTimePeriod
 
createLastYearMonths(DateTimeZone) - Static method in class com.cloudhopper.commons.util.time.DateTimePeriod
Create a list of DateTimePeriods that represent the last year of YearMonth periods.
createMonth(int, int, DateTimeZone) - Static method in class com.cloudhopper.commons.util.time.DateTimePeriod
 
createMonth(DateTime) - Static method in class com.cloudhopper.commons.util.time.DateTimePeriod
 
createSortedSnapshot() - Method in class com.cloudhopper.commons.util.windowing.Window
Creates an ordered snapshot of the requests in this window.
createYear(int, DateTimeZone) - Static method in class com.cloudhopper.commons.util.time.DateTimePeriod
 
createYear(DateTime) - Static method in class com.cloudhopper.commons.util.time.DateTimePeriod
 

D

DateTimeDay - Class in com.cloudhopper.commons.util.time
 
DateTimeDay(DateTime, DateTime) - Constructor for class com.cloudhopper.commons.util.time.DateTimeDay
 
DateTimeDuration - Enum in com.cloudhopper.commons.util.time
Enumeration of a specific duration of time such as a Month, Year, Hour, etc.
DateTimeFiveMinutes - Class in com.cloudhopper.commons.util.time
 
DateTimeFiveMinutes(DateTime, DateTime) - Constructor for class com.cloudhopper.commons.util.time.DateTimeFiveMinutes
 
DateTimeHour - Class in com.cloudhopper.commons.util.time
 
DateTimeHour(DateTime, DateTime) - Constructor for class com.cloudhopper.commons.util.time.DateTimeHour
 
DateTimeMonth - Class in com.cloudhopper.commons.util.time
 
DateTimeMonth(DateTime, DateTime) - Constructor for class com.cloudhopper.commons.util.time.DateTimeMonth
 
DateTimePeriod - Class in com.cloudhopper.commons.util.time
Represents two DateTime values that represent the "start" and "end" of a period of time.
DateTimePeriod(DateTime, DateTime, DateTimeDuration, String, String, String, String) - Constructor for class com.cloudhopper.commons.util.time.DateTimePeriod
 
DateTimePeriodData - Class in com.cloudhopper.commons.util.time
Utility class for modeling datasets keyed on a DateTimePeriod.
DateTimePeriodData(DateTimePeriod) - Constructor for class com.cloudhopper.commons.util.time.DateTimePeriodData
 
DateTimePeriodDataUtil - Class in com.cloudhopper.commons.util.time
 
DateTimePeriodSelector - Class in com.cloudhopper.commons.util.time
Utility class for creating lists of periods for users to select from.
DateTimeUtil - Class in com.cloudhopper.commons.util
 
DateTimeUtil() - Constructor for class com.cloudhopper.commons.util.DateTimeUtil
 
DateTimeYear - Class in com.cloudhopper.commons.util.time
 
DateTimeYear(DateTime, DateTime) - Constructor for class com.cloudhopper.commons.util.time.DateTimeYear
 
debug(PrintStream) - Method in class com.cloudhopper.commons.util.DigitLookupMap
Prints out a dump of the hierarchy of this AddressTree to the specified PrintStream.
DecimalUtil - Class in com.cloudhopper.commons.util
Utility classes for working with decimal values like a float or double.
DecimalUtil() - Constructor for class com.cloudhopper.commons.util.DecimalUtil
 
decode(String) - Static method in class com.cloudhopper.commons.util.codec.Base64Codec
Decodes the provided set of base64-encoded data.
decode(CharSequence) - Static method in class com.cloudhopper.commons.util.codec.URLCodec
 
decode(CharSequence, Appendable) - Static method in class com.cloudhopper.commons.util.codec.URLCodec
decode(CharSequence, Charset, Appendable) - Static method in class com.cloudhopper.commons.util.codec.URLCodec
 
decode(CharSequence, OutputStream) - Static method in class com.cloudhopper.commons.util.codec.URLCodec
 
decodeBcd(byte[], int, int) - Static method in class com.cloudhopper.commons.util.ByteUtil
BCD decodes a byte array into a String.
decodeHex(String, int) - Static method in class com.cloudhopper.commons.util.ByteUtil
Deprecated.
Please see class HexUtil
decodeToBytes(CharSequence) - Static method in class com.cloudhopper.commons.util.codec.URLCodec
decodeUnsigned(byte) - Static method in class com.cloudhopper.commons.util.ByteUtil
Allow a variable of type byte to carry lengths or sizes up to 255.
decrypt(String, String) - Static method in class com.cloudhopper.commons.util.EncryptUtil
Decodes a base-64 encoded string using the key with the DES/ECB/PKCS5Padding cipher.
DEFAULT_BUFFER_SIZE - Static variable in class com.cloudhopper.commons.util.codec.URLDecoder
 
DEFAULT_BUFFER_SIZE - Static variable in class com.cloudhopper.commons.util.codec.URLEncoder
 
DefaultWindowFuture<K,R,P> - Class in com.cloudhopper.commons.util.windowing
Default implementation of a WindowFuture.
DefaultWindowFuture(Window, ReentrantLock, Condition, K, R, int, long, int, long, long, long) - Constructor for class com.cloudhopper.commons.util.windowing.DefaultWindowFuture
Creates a new DefaultWindowFuture.
delete(int) - Method in class com.cloudhopper.commons.util.ByteBuffer
Deletes the first N bytes of the buffer.
description - Variable in class com.cloudhopper.commons.util.MetaFieldInfo
 
destroy() - Method in class com.cloudhopper.commons.util.windowing.Window
Destroy this window by freeing all resources associated with it.
DigitLookupMap<V> - Class in com.cloudhopper.commons.util
A Trie based implementation of the SimpleMap interface used to map String keys (containing only digits) to values.
DigitLookupMap() - Constructor for class com.cloudhopper.commons.util.DigitLookupMap
 
DuplicateKeyException - Exception in com.cloudhopper.commons.util.windowing
Thrown when the key for a request already exists.
DuplicateKeyException(String) - Constructor for exception com.cloudhopper.commons.util.windowing.DuplicateKeyException
 

E

encode(byte[]) - Static method in class com.cloudhopper.commons.util.codec.Base64Codec
Encodes the provided raw data using base64.
encode(CharSequence) - Static method in class com.cloudhopper.commons.util.codec.URLCodec
encode(CharSequence, Appendable) - Static method in class com.cloudhopper.commons.util.codec.URLCodec
encode(CharSequence, Charset, Appendable) - Static method in class com.cloudhopper.commons.util.codec.URLCodec
 
encode(ByteBuffer, Appendable) - Static method in class com.cloudhopper.commons.util.codec.URLCodec
 
encodeBcd(String, int) - Static method in class com.cloudhopper.commons.util.ByteUtil
BCD encodes a String into a byte array.
encodeHex(byte) - Static method in class com.cloudhopper.commons.util.ByteUtil
Deprecated.
Please see class HexUtil
encodeHex(byte[]) - Static method in class com.cloudhopper.commons.util.ByteUtil
Deprecated.
Please see class HexUtil
encodeHex(byte[], char) - Static method in class com.cloudhopper.commons.util.ByteUtil
Deprecated.
Please see class HexUtil
encrypt(String, String) - Static method in class com.cloudhopper.commons.util.EncryptUtil
Uses the key to encrypt the source string into a base-64 encoded string using a DES/ECB/PKCS5Padding cipher.
EncryptUtil - Class in com.cloudhopper.commons.util
Utility class for 2-way encryption.
EncryptUtil() - Constructor for class com.cloudhopper.commons.util.EncryptUtil
 
endsWith(byte[]) - Method in class com.cloudhopper.commons.util.ByteBuffer
Tests if the buffer ends with the bytes array prefix.
EnvironmentException - Exception in com.cloudhopper.commons.util
Exception represents a an error while creating environment properties.
EnvironmentException(String) - Constructor for exception com.cloudhopper.commons.util.EnvironmentException
Constructs an instance of FileAlreadyExistsException with the specified detail message.
EnvironmentException(String, Throwable) - Constructor for exception com.cloudhopper.commons.util.EnvironmentException
Constructs an instance of FileAlreadyExistsException with the specified detail message.
EnvironmentUtil - Class in com.cloudhopper.commons.util
Common environment methods.
EnvironmentUtil() - Constructor for class com.cloudhopper.commons.util.EnvironmentUtil
 
equals(Object) - Method in class com.cloudhopper.commons.util.ByteBuffer
Tests if the current ByteBuffer and the parameter are both ByteBuffers and whether it contains the same sequence of bytes.
equals(byte[]) - Method in class com.cloudhopper.commons.util.ByteBuffer
Tests if the current ByteBuffer and the byte array have the same sequence of bytes.
equals(File, File) - Static method in class com.cloudhopper.commons.util.FileUtil
Tests whether the contents of two files equals each other by performing a byte-by-byte comparison.
equals(Object) - Method in class com.cloudhopper.commons.util.HexString
 
equals(Object) - Method in class com.cloudhopper.commons.util.LoadBalancedList.Node
 
equals(Object) - Method in class com.cloudhopper.commons.util.time.DateTimePeriod
Compares another DateTimePeriod for equality if the internal start and end DateTimes equal this period.
equals(Object) - Method in class com.cloudhopper.commons.util.time.DateTimePeriodData
 
equals(Object) - Method in class com.cloudhopper.commons.util.UnwrappedWeakReference
 
equals(Object) - Method in class com.cloudhopper.commons.util.URL
 
escapeXml(String) - Static method in class com.cloudhopper.commons.util.StringUtil
Escapes the characters in a String using XML entities.
expired(WindowFuture<K, R, P>) - Method in interface com.cloudhopper.commons.util.windowing.WindowListener
Called when a future has been automatically expired by a window in its internal monitoring task.

F

fail(Throwable) - Method in class com.cloudhopper.commons.util.windowing.DefaultWindowFuture
 
fail(Throwable, long) - Method in class com.cloudhopper.commons.util.windowing.DefaultWindowFuture
 
fail(K, Throwable) - Method in class com.cloudhopper.commons.util.windowing.Window
Fails (completes) a request by setting the cause of the failure on the associated future.
fail(Throwable) - Method in interface com.cloudhopper.commons.util.windowing.WindowFuture
Completes (as a failure) a request by setting a throwable as the cause of failure.
fail(Throwable, long) - Method in interface com.cloudhopper.commons.util.windowing.WindowFuture
Completes (as a failure) a request by setting a throwable as the cause of failure.
failAll(Throwable) - Method in class com.cloudhopper.commons.util.windowing.Window
Fails (completes) all requests by setting the same cause of the failure on all associated futures.
FastByteArrayOutputStream - Class in com.cloudhopper.commons.util
Originally found here: http://www.java2s.com/Code/Java/File-Input-Output/AspeedyimplementationofByteArrayOutputStream.htm A speedy implementation of ByteArrayOutputStream.
FastByteArrayOutputStream() - Constructor for class com.cloudhopper.commons.util.FastByteArrayOutputStream
 
FastByteArrayOutputStream(int) - Constructor for class com.cloudhopper.commons.util.FastByteArrayOutputStream
 
fieldClass - Variable in class com.cloudhopper.commons.util.MetaFieldInfo
 
fieldName - Variable in class com.cloudhopper.commons.util.MetaFieldInfo
 
FileAlreadyExistsException - Exception in com.cloudhopper.commons.util
Exception represents a file already exists and cannot be overwritten.
FileAlreadyExistsException(String) - Constructor for exception com.cloudhopper.commons.util.FileAlreadyExistsException
Constructs an instance of FileAlreadyExistsException with the specified detail message.
FileAlreadyExistsException(String, Throwable) - Constructor for exception com.cloudhopper.commons.util.FileAlreadyExistsException
Constructs an instance of FileAlreadyExistsException with the specified detail message.
FileExtensionFilter - Class in com.cloudhopper.commons.util.filefilter
Accepts a file based on its file extension against a list of one or more acceptable file extensions.
FileExtensionFilter(String) - Constructor for class com.cloudhopper.commons.util.filefilter.FileExtensionFilter
Creates a new instance of a FileExtensionMatcher that will perform a case insensitive match to this file extension.
FileExtensionFilter(String[]) - Constructor for class com.cloudhopper.commons.util.filefilter.FileExtensionFilter
Creates a new instance of a FileExtensionMatcher that will perform a case insensitive match to this array of file extensions.
FileExtensionFilter(String, boolean) - Constructor for class com.cloudhopper.commons.util.filefilter.FileExtensionFilter
Creates a new instance of a FileExtensionMatcher that will perform a match to this file extension.
FileExtensionFilter(String[], boolean) - Constructor for class com.cloudhopper.commons.util.filefilter.FileExtensionFilter
Creates a new instance of a FileExtensionMatcher that will perform a match to this array of file extensions.
FileNameDateTimeFilter - Class in com.cloudhopper.commons.util.filefilter
Filters a file based on an embedded date within the filename.
FileNameDateTimeFilter(DateTime) - Constructor for class com.cloudhopper.commons.util.filefilter.FileNameDateTimeFilter
 
FileNameDateTimeFilter(DateTime, DateTimeZone) - Constructor for class com.cloudhopper.commons.util.filefilter.FileNameDateTimeFilter
 
FileNameDateTimeFilter(DateTime, String) - Constructor for class com.cloudhopper.commons.util.filefilter.FileNameDateTimeFilter
 
FileNameDateTimeFilter(DateTime, String, DateTimeZone) - Constructor for class com.cloudhopper.commons.util.filefilter.FileNameDateTimeFilter
 
FileNameEndsWithFilter - Class in com.cloudhopper.commons.util.filefilter
Accepts a file based on whether its filename endsWith a specific string.
FileNameEndsWithFilter(String) - Constructor for class com.cloudhopper.commons.util.filefilter.FileNameEndsWithFilter
 
FileNameEndsWithFilter(String, boolean) - Constructor for class com.cloudhopper.commons.util.filefilter.FileNameEndsWithFilter
 
FileNameStartsWithFilter - Class in com.cloudhopper.commons.util.filefilter
Accepts a file based on whether its filename startsWith a specific string.
FileNameStartsWithFilter(String) - Constructor for class com.cloudhopper.commons.util.filefilter.FileNameStartsWithFilter
 
FileNameStartsWithFilter(String, boolean) - Constructor for class com.cloudhopper.commons.util.filefilter.FileNameStartsWithFilter
 
FileUtil - Class in com.cloudhopper.commons.util
Utility class for handling Files.
FileUtil.FileNameDateTimeComparator - Class in com.cloudhopper.commons.util
Class to compare Files by their embedded DateTimes.
FileUtil.FileNameDateTimeComparator() - Constructor for class com.cloudhopper.commons.util.FileUtil.FileNameDateTimeComparator
Creates a default instance where the pattern is "yyyy-MM-dd" and the default timezone of UTC.
FileUtil.FileNameDateTimeComparator(String, DateTimeZone) - Constructor for class com.cloudhopper.commons.util.FileUtil.FileNameDateTimeComparator
 
fill(Class<T>, Map<DateTime, T>, List<DateTimePeriod>) - Static method in class com.cloudhopper.commons.util.time.DateTimePeriodDataUtil
 
findBeanProperty(Class, String, boolean) - Static method in class com.cloudhopper.commons.util.BeanUtil
Finds a BeanProperty for the class type.
findByFileExtension(String) - Static method in enum com.cloudhopper.commons.util.CompressionUtil.Algorithm
Finds the matching compression algorithm by performing a case insensitive search based on its file extension such as "gz" for gzip.
findByName(String) - Static method in enum com.cloudhopper.commons.util.CompressionUtil.Algorithm
Finds the matching compression algorithm by performing a case insensitive search based on its name such as "gzip".
findEnumConstant(Class<?>, String) - Static method in class com.cloudhopper.commons.util.ClassUtil
Finds an instance of an Enum constant on a class.
findEnumConstant(Class<?>, String, boolean) - Static method in class com.cloudhopper.commons.util.ClassUtil
Finds an instance of an Enum constant on a class.
findFiles(File, FileFilter) - Static method in class com.cloudhopper.commons.util.FileUtil
Finds all files (non-recursively) in a directory based on the FileFilter.
floorToDay(DateTime) - Static method in class com.cloudhopper.commons.util.DateTimeUtil
Null-safe method that returns a new instance of a DateTime object rounded downwards to the nearest day.
floorToFiveMinutes(DateTime) - Static method in class com.cloudhopper.commons.util.DateTimeUtil
Null-safe method that returns a new instance of a DateTime object rounded downwards to the nearest 5 minutes.
floorToHalfHour(DateTime) - Static method in class com.cloudhopper.commons.util.DateTimeUtil
Null-safe method that returns a new instance of a DateTime object rounded downwards to the nearest half hour (30 minutes).
floorToHour(DateTime) - Static method in class com.cloudhopper.commons.util.DateTimeUtil
Null-safe method that returns a new instance of a DateTime object rounded downwards to the nearest hour.
floorToMinute(DateTime) - Static method in class com.cloudhopper.commons.util.DateTimeUtil
Null-safe method that returns a new instance of a DateTime object rounded downwards to the nearest minute.
floorToMinutePeriod(DateTime, int) - Static method in class com.cloudhopper.commons.util.DateTimeUtil
Null-safe method that returns a new instance of a DateTime object rounded downwards to the nearest specified period in minutes.
floorToMonth(DateTime) - Static method in class com.cloudhopper.commons.util.DateTimeUtil
Null-safe method that returns a new instance of a DateTime object rounded downwards to the nearest month.
floorToQuarterHour(DateTime) - Static method in class com.cloudhopper.commons.util.DateTimeUtil
Null-safe method that returns a new instance of a DateTime object rounded downwards to the nearest 15 minutes.
floorToSecond(DateTime) - Static method in class com.cloudhopper.commons.util.DateTimeUtil
Null-safe method that returns a new instance of a DateTime object rounded downwards to the nearest second.
floorToTenMinutes(DateTime) - Static method in class com.cloudhopper.commons.util.DateTimeUtil
Null-safe method that returns a new instance of a DateTime object rounded downwards to the nearest 10 minutes.
floorToYear(DateTime) - Static method in class com.cloudhopper.commons.util.DateTimeUtil
Null-safe method that returns a new instance of a DateTime object rounded downwards to the nearest year.
flush(boolean) - Method in class com.cloudhopper.commons.util.codec.URLDecoder
 
flush() - Method in class com.cloudhopper.commons.util.codec.URLDecoder
 
flush(boolean) - Method in class com.cloudhopper.commons.util.codec.URLEncoder
 
flush() - Method in class com.cloudhopper.commons.util.codec.URLEncoder
 
formatForPrint(String) - Static method in class com.cloudhopper.commons.util.StringUtil
Used to print out a string for error messages, chops is off at 60 chars for historical reasons.
free() - Method in class com.cloudhopper.commons.util.ByteBuffer
Gets the number of free bytes this buffer has remaining for writing.
fromHexString(String) - Static method in class com.cloudhopper.commons.util.StringUtil
Deprecated.
Please use new utility class HexUtil
fromHexString(String, int, int) - Static method in class com.cloudhopper.commons.util.StringUtil
Deprecated.
Please use new utility class HexUtil

G

generateKey() - Static method in class com.cloudhopper.commons.util.EncryptUtil
 
generateString(int) - Static method in class com.cloudhopper.commons.util.RandomUtil
Creates a random string using only lowercase ascii letters, uppercase ascii letters, and digits.
get(Object) - Method in class com.cloudhopper.commons.util.BeanProperty
Gets the property value on the object.
get(int) - Method in class com.cloudhopper.commons.util.ByteBuffer
Gets the byte at the given index relative to the beginning the circular buffer.
get(String) - Method in class com.cloudhopper.commons.util.DigitLookupMap
 
get(String) - Method in interface com.cloudhopper.commons.util.SimpleMap
Returns the value to which this map maps the specified key.
get(String) - Method in class com.cloudhopper.commons.util.StringLookupMap
 
get() - Method in class com.cloudhopper.commons.util.TimedStateBoolean
Returns the current value.
get(K) - Method in class com.cloudhopper.commons.util.windowing.Window
Gets the a future by its key.
getAcceptTimestamp() - Method in class com.cloudhopper.commons.util.windowing.DefaultWindowFuture
 
getAcceptTimestamp() - Method in interface com.cloudhopper.commons.util.windowing.WindowFuture
Gets the accept timestamp in milliseconds.
getAcceptToDoneTime() - Method in class com.cloudhopper.commons.util.windowing.DefaultWindowFuture
 
getAcceptToDoneTime() - Method in interface com.cloudhopper.commons.util.windowing.WindowFuture
Gets the amount of time (in ms) from accept to done or -1 if a done timestamp does not yet exist.
getAddMethod() - Method in class com.cloudhopper.commons.util.BeanProperty
Gets the underlying declared adder method for this property.
getAllThreads() - Static method in class com.cloudhopper.commons.util.ThreadUtil
Gets all threads in the JVM.
getAllThreadsMatching(String) - Static method in class com.cloudhopper.commons.util.ThreadUtil
Gets all threads if its name matches a regular expression.
getAndSet(boolean) - Method in class com.cloudhopper.commons.util.TimedStateBoolean
Sets to the given value and returns the previous value.
getAsciiBytes(String) - Static method in class com.cloudhopper.commons.util.StringUtil
Get 7-bit ASCII character array from input String.
getAsciiString(byte[]) - Static method in class com.cloudhopper.commons.util.StringUtil
 
getAverage() - Method in class com.cloudhopper.commons.util.RunningTotal
Returns current average of our running total.
getBeanMethods(Class<?>, String, Class<?>, boolean) - Static method in class com.cloudhopper.commons.util.ClassUtil
Gets the methods within this class that implements public "bean" methods (get and set) for the property name.
getCallerStateHint() - Method in class com.cloudhopper.commons.util.windowing.DefaultWindowFuture
 
getCallerStateHint() - Method in interface com.cloudhopper.commons.util.windowing.WindowFuture
Gets a hint of the caller state such as whether the caller is waiting, not waiting, or timed out while waiting for completion.
getCapacity() - Method in class com.cloudhopper.commons.util.CircularIndex
Gets the underlying capacity of the index.
getCause() - Method in class com.cloudhopper.commons.util.windowing.DefaultWindowFuture
 
getCause() - Method in interface com.cloudhopper.commons.util.windowing.WindowFuture
Returns the cause of the failed operation if the operation has failed.
getClassHierarchy(Class<?>) - Static method in class com.cloudhopper.commons.util.ClassUtil
Returns an array of class objects representing the entire class hierarchy with the most-super class as the first element followed by all subclasses in the order they are declared.
getCount() - Method in class com.cloudhopper.commons.util.LoadBalancedList.Node
 
getDayHourMinSecPeriodType() - Static method in class com.cloudhopper.commons.util.PeriodFormatterUtil
Gets a PeriodType that can be used to create a Period that is normalized to only include the fields Day, Hour, Minute, and Second.
getDefaultSubDuration() - Method in class com.cloudhopper.commons.util.time.DateTimeDay
 
getDefaultSubDuration() - Method in class com.cloudhopper.commons.util.time.DateTimeFiveMinutes
 
getDefaultSubDuration() - Method in class com.cloudhopper.commons.util.time.DateTimeHour
 
getDefaultSubDuration() - Method in class com.cloudhopper.commons.util.time.DateTimeMonth
 
getDefaultSubDuration() - Method in class com.cloudhopper.commons.util.time.DateTimePeriod
Gets the default "Group By" enumeration based on the duration for this period.
getDefaultSubDuration() - Method in class com.cloudhopper.commons.util.time.DateTimeYear
 
getDoneTimestamp() - Method in class com.cloudhopper.commons.util.windowing.DefaultWindowFuture
 
getDoneTimestamp() - Method in interface com.cloudhopper.commons.util.windowing.WindowFuture
Gets the done timestamp in milliseconds.
getDuration() - Method in class com.cloudhopper.commons.util.time.DateTimePeriod
Gets the duration this period represents such as a Month, Year, etc.
getEnd() - Method in class com.cloudhopper.commons.util.time.DateTimePeriod
Gets the exclusive ending DateTime for this period.
getExpected() - Method in class com.cloudhopper.commons.util.TimedStateBoolean
Returns the expected value of this state boolean.
getExpireTimestamp() - Method in class com.cloudhopper.commons.util.windowing.DefaultWindowFuture
 
getExpireTimestamp() - Method in interface com.cloudhopper.commons.util.windowing.WindowFuture
Gets the expire timestamp in milliseconds.
getField() - Method in class com.cloudhopper.commons.util.BeanProperty
Gets the underlying declared field within the class for this property.
getFileExtension() - Method in enum com.cloudhopper.commons.util.CompressionUtil.Algorithm
Gets the extension associated with this compression algorithm such as "gz" for gzip or "zip" for zip.
getFirst() - Method in class com.cloudhopper.commons.util.CircularIndex
Gets the index to the first element if it exists.
getFreeSize() - Method in class com.cloudhopper.commons.util.windowing.Window
Gets the current number of request that would be accepted by this window without blocking.
getGetMethod() - Method in class com.cloudhopper.commons.util.BeanProperty
Gets the underlying declared getter method for this property.
getHost() - Method in class com.cloudhopper.commons.util.URL
Gets the host such as "www.google.com" if the URL is "http://www.google.com"
getHostFQDN() - Static method in class com.cloudhopper.commons.util.EnvironmentUtil
 
getIndexName() - Method in class com.cloudhopper.commons.util.time.DateTimePeriod
Gets an index name for this period appropriate for display to only identify the particular row by the smallest possible identifer.
getInternalFirst() - Method in class com.cloudhopper.commons.util.CircularIndex
protected methods just for testing purposes
getInternalNext() - Method in class com.cloudhopper.commons.util.CircularIndex
 
getKey() - Method in class com.cloudhopper.commons.util.time.DateTimePeriod
Gets a key that is unique to this period.
getKey() - Method in class com.cloudhopper.commons.util.windowing.DefaultWindowFuture
 
getKey() - Method in interface com.cloudhopper.commons.util.windowing.WindowFuture
Gets the key of the window entry.
getLast() - Method in class com.cloudhopper.commons.util.CircularIndex
Gets the index to the last element if it exists.
getLinuxUptimeStyle() - Static method in class com.cloudhopper.commons.util.PeriodFormatterUtil
Gets a PeriodFormatter in the Linux OS style such as "0 days, 01:05:12" or "2 days, 07:00:00".
getLongName() - Method in class com.cloudhopper.commons.util.time.DateTimePeriod
Gets a long name for this period appropriate for display as the title for a report such as "January 2009".
getMaxSize() - Method in class com.cloudhopper.commons.util.CircularIndex
Gets the maximum number of elements this index can support.
getMaxSize() - Method in class com.cloudhopper.commons.util.windowing.Window
Gets the max size of the window.
getMBeanServerId(MBeanServer) - Static method in class com.cloudhopper.commons.util.ManagementUtil
Get the MBeanServerId of Agent ID for the provided MBeanServer.
getMethod(Class<?>, String, Class<?>, Class<?>, boolean) - Static method in class com.cloudhopper.commons.util.ClassUtil
Gets the public method within the type that matches the method name, return type, and single parameter type.
getName() - Method in class com.cloudhopper.commons.util.BeanProperty
Gets the name of the property such as "firstName".
getName() - Method in enum com.cloudhopper.commons.util.CompressionUtil.Algorithm
Gets the name of this compression algorithm such as "gzip".
getName() - Method in class com.cloudhopper.commons.util.NameValue
 
getNext() - Method in interface com.cloudhopper.commons.util.LoadBalancedList
Gets the next item to use from the list.
getNext() - Method in class com.cloudhopper.commons.util.RoundRobinLoadBalancedList
 
getNext() - Method in class com.cloudhopper.commons.util.time.DateTimeDay
 
getNext() - Method in class com.cloudhopper.commons.util.time.DateTimeFiveMinutes
 
getNext() - Method in class com.cloudhopper.commons.util.time.DateTimeHour
 
getNext() - Method in class com.cloudhopper.commons.util.time.DateTimeMonth
 
getNext() - Method in class com.cloudhopper.commons.util.time.DateTimePeriod
Gets the next period based on the duration.
getNext() - Method in class com.cloudhopper.commons.util.time.DateTimeYear
 
getNextFirst() - Method in class com.cloudhopper.commons.util.CircularIndex
Gets the index where the next first element will be put.
getNextLast() - Method in class com.cloudhopper.commons.util.CircularIndex
Gets the index where the next last element will be put.
getOfferTimestamp() - Method in class com.cloudhopper.commons.util.windowing.DefaultWindowFuture
 
getOfferTimestamp() - Method in interface com.cloudhopper.commons.util.windowing.WindowFuture
Gets the offer timestamp in milliseconds.
getOfferToAcceptTime() - Method in class com.cloudhopper.commons.util.windowing.DefaultWindowFuture
 
getOfferToAcceptTime() - Method in interface com.cloudhopper.commons.util.windowing.WindowFuture
Gets the amount of time (in ms) from offer to accept.
getOfferToDoneTime() - Method in class com.cloudhopper.commons.util.windowing.DefaultWindowFuture
 
getOfferToDoneTime() - Method in interface com.cloudhopper.commons.util.windowing.WindowFuture
Gets the amount of time (in ms) from offer to done or -1 if a done timestamp does not yet exist.
getPassword() - Method in class com.cloudhopper.commons.util.URL
Gets the password such as "test" if the URL is "http://root:test@www.google.com/" or "t@st" if the URL is "http://root:t%40st@www.google.com/".
getPath() - Method in class com.cloudhopper.commons.util.URL
Gets the path such as "/" if the URL is "http://www.google.com/" or "/My Documents/index.html" if the URL is "http://www.google.com/My+Documents/index.html".
getPendingOfferCount() - Method in class com.cloudhopper.commons.util.windowing.Window
Gets the current number of callers/threads that are waiting for a pending offer to be accepted.
getPeriod() - Method in class com.cloudhopper.commons.util.time.DateTimePeriodData
 
getPort() - Method in class com.cloudhopper.commons.util.URL
Gets the port such as 80 if the URL specifically included a port such as "http://www.google.com:80/".
getPrevious() - Method in class com.cloudhopper.commons.util.time.DateTimeDay
 
getPrevious() - Method in class com.cloudhopper.commons.util.time.DateTimeFiveMinutes
 
getPrevious() - Method in class com.cloudhopper.commons.util.time.DateTimeHour
 
getPrevious() - Method in class com.cloudhopper.commons.util.time.DateTimeMonth
 
getPrevious() - Method in class com.cloudhopper.commons.util.time.DateTimePeriod
Gets the previous period based on the duration.
getPrevious() - Method in class com.cloudhopper.commons.util.time.DateTimeYear
 
getProtocol() - Method in class com.cloudhopper.commons.util.URL
Gets the protocol such as "http" if the URL is "http://www.google.com"
getQuery() - Method in class com.cloudhopper.commons.util.URL
Gets the query such as "id=1&pk=3" if the URL was "http://www.google.com/index.html?id=1&pk=3".
getQueryProperties() - Method in class com.cloudhopper.commons.util.URL
 
getQueryProperty(String) - Method in class com.cloudhopper.commons.util.URL
 
getRejected() - Method in class com.cloudhopper.commons.util.CountingRejectedExecutionHandler
 
getRemainingSize() - Method in class com.cloudhopper.commons.util.RoundRobinLoadBalancedList
 
getRequest() - Method in class com.cloudhopper.commons.util.windowing.DefaultWindowFuture
 
getRequest() - Method in interface com.cloudhopper.commons.util.windowing.WindowFuture
Gets the request contained in the window entry.
getResponse() - Method in class com.cloudhopper.commons.util.windowing.DefaultWindowFuture
 
getResponse() - Method in interface com.cloudhopper.commons.util.windowing.WindowFuture
Gets the response associated with the window entry.
getRootThreadGroup() - Static method in class com.cloudhopper.commons.util.ThreadUtil
Gets the "root" thread group for the entire JVM.
getSetMethod() - Method in class com.cloudhopper.commons.util.BeanProperty
Gets the underlying declared setter method for this property.
getShortName() - Method in class com.cloudhopper.commons.util.time.DateTimePeriod
Gets a short name for this period appropriate for display within a table of data to identify a row.
getSize() - Method in class com.cloudhopper.commons.util.CircularIndex
Gets the current number of elements in this index.
getSize() - Method in class com.cloudhopper.commons.util.FastByteArrayOutputStream
 
getSize() - Method in interface com.cloudhopper.commons.util.LoadBalancedList
Gets the total number of items (size) of the list.
getSize() - Method in class com.cloudhopper.commons.util.RoundRobinLoadBalancedList
 
getSize() - Method in class com.cloudhopper.commons.util.RunningTotal
Returns current number of values in our running total.
getSize() - Method in class com.cloudhopper.commons.util.windowing.Window
Gets the current number of requests in the window.
getStackTrace(Throwable) - Static method in class com.cloudhopper.commons.util.StackTraceUtil
 
getStandardUptimeStyle() - Static method in class com.cloudhopper.commons.util.PeriodFormatterUtil
Gets a PeriodFormatter in the standard Uptime style such as "0 days 0 hours 1 min 50 secs" or "2 days 7 hours 1 min 50 secs".
getStart() - Method in class com.cloudhopper.commons.util.time.DateTimePeriod
Gets the inclusive starting DateTime for this period.
getThread(long) - Static method in class com.cloudhopper.commons.util.ThreadUtil
Gets a thread by its assigned ID.
getTotal() - Method in class com.cloudhopper.commons.util.RunningTotal
Returns current value of our running total.
getType() - Method in class com.cloudhopper.commons.util.BeanProperty
Gets the Class type of the property such as "java.lang.String".
getUsername() - Method in class com.cloudhopper.commons.util.URL
Gets the username such as "root" if the URL is "http://root@www.google.com/" or "ro@t" if the URL is "http://ro%40t@www.google.com/".
getValue() - Method in class com.cloudhopper.commons.util.LoadBalancedList.Node
 
getValue() - Method in class com.cloudhopper.commons.util.NameValue
 
getValueDateTime() - Method in class com.cloudhopper.commons.util.TimedStateBoolean
Returns a DateTime that represents the last time this boolean changed state.
getValueDuration() - Method in class com.cloudhopper.commons.util.TimedStateBoolean
Based on the time this method is called (System.currentTimeMillis), this method returns a Period that represents the duration of time this value has retained this value.
getValueDurationInMills() - Method in class com.cloudhopper.commons.util.TimedStateBoolean
Based on the time this method is called (System.currentTimeMillis), this method returns a long that represents the duration of time this value has retained this value.
getValues() - Method in interface com.cloudhopper.commons.util.LoadBalancedList
Gets a list of all nodes.
getValues() - Method in class com.cloudhopper.commons.util.RoundRobinLoadBalancedList
 
getValueTimeMillis() - Method in class com.cloudhopper.commons.util.TimedStateBoolean
Returns the timestamp (num of milliseconds via System.currentTimeMillis) of the last time this boolean changed state.
getWeight() - Method in class com.cloudhopper.commons.util.LoadBalancedList.Node
 
getWindowSize() - Method in class com.cloudhopper.commons.util.windowing.DefaultWindowFuture
 
getWindowSize() - Method in interface com.cloudhopper.commons.util.windowing.WindowFuture
Returns the size of the window (number of requests in it) after this request was added.

H

hasBeanMethods(Class<?>, String, Class<?>, boolean) - Static method in class com.cloudhopper.commons.util.ClassUtil
Checks if the class implements public "bean" methods (get and set) for the name.
hasDoneTimestamp() - Method in class com.cloudhopper.commons.util.windowing.DefaultWindowFuture
 
hasDoneTimestamp() - Method in interface com.cloudhopper.commons.util.windowing.WindowFuture
Returns true if a done timestamp value exists (> 0).
hasExpireTimestamp() - Method in class com.cloudhopper.commons.util.windowing.DefaultWindowFuture
 
hasExpireTimestamp() - Method in interface com.cloudhopper.commons.util.windowing.WindowFuture
Returns true if an expire timestamp value exists (> 0).
hashCode() - Method in class com.cloudhopper.commons.util.ByteBuffer
Gets a hash code for this ByteBuffer object based on actual sequence of bytes stored in this buffer.
hashCode() - Method in class com.cloudhopper.commons.util.HexString
 
hashCode() - Method in class com.cloudhopper.commons.util.LoadBalancedList.Node
 
hashCode() - Method in class com.cloudhopper.commons.util.time.DateTimePeriod
Hashcode computed based on the internal start and end DateTime hashCode values.
hashCode() - Method in class com.cloudhopper.commons.util.time.DateTimePeriodData
 
hashCode() - Method in class com.cloudhopper.commons.util.UnwrappedWeakReference
 
hashCode() - Method in class com.cloudhopper.commons.util.URL
 
Hasher - Class in com.cloudhopper.commons.util
Utility class to hash strings (such as passwords).
Hasher() - Constructor for class com.cloudhopper.commons.util.Hasher
 
Hasher(Hasher.Algorithm) - Constructor for class com.cloudhopper.commons.util.Hasher
 
Hasher.Algorithm - Enum in com.cloudhopper.commons.util
Enum that represents each different algorithm supported by the Hasher.
HEX_TABLE - Static variable in class com.cloudhopper.commons.util.HexUtil
 
HEX_TABLE - Static variable in class com.cloudhopper.commons.util.StringUtil
 
hexCharToIntValue(char) - Static method in class com.cloudhopper.commons.util.HexUtil
Converts a hexidecimal character such as '0' or 'A' or 'a' to its integer value such as 0 or 10.
hexDump(String, byte[]) - Static method in class com.cloudhopper.commons.util.StringUtil
Convert a byte array to a human-readable String for debugging purposes.
HexString - Class in com.cloudhopper.commons.util
Utility class for representing hex strings.
HexUtil - Class in com.cloudhopper.commons.util
Utility class for encoding or decoding objects to a hexidecimal format.
HexUtil() - Constructor for class com.cloudhopper.commons.util.HexUtil
 
HOST_DOMAIN - Static variable in class com.cloudhopper.commons.util.EnvironmentUtil
 
HOST_FQDN - Static variable in class com.cloudhopper.commons.util.EnvironmentUtil
 
HOST_NAME - Static variable in class com.cloudhopper.commons.util.EnvironmentUtil
 

I

incrementCount() - Method in class com.cloudhopper.commons.util.LoadBalancedList.Node
 
indexOf(byte[]) - Method in class com.cloudhopper.commons.util.ByteBuffer
Returns the index within this buffer of the first occurrence of the specified bytes.
indexOf(byte[], int) - Method in class com.cloudhopper.commons.util.ByteBuffer
Returns the index within this buffer of the first occurrence of the specified bytes after the offset.
indexOf(String[], String) - Static method in class com.cloudhopper.commons.util.StringUtil
Finds the first occurrence of the targetString in the array of strings.
internalToMetaFieldInfoArray(Class, Object, String, String, String, boolean, boolean) - Static method in class com.cloudhopper.commons.util.MetaFieldUtil
Optionally, recursively returns a new MetaFieldInfo array of all Fields annotated with MetaField in the object.
isAlgorithmSupported(String) - Static method in class com.cloudhopper.commons.util.CompressionUtil
Checks if the compression algorithm is supported by this utility class.
isCallerWaiting() - Method in class com.cloudhopper.commons.util.windowing.DefaultWindowFuture
 
isCallerWaiting() - Method in interface com.cloudhopper.commons.util.windowing.WindowFuture
Returns true if and only if the caller hinted at "WAITING" for completion.
isCancelled() - Method in class com.cloudhopper.commons.util.windowing.DefaultWindowFuture
 
isCancelled() - Method in interface com.cloudhopper.commons.util.windowing.WindowFuture
Returns true if and only if this future was cancelled by a cancel() method.
isDone() - Method in class com.cloudhopper.commons.util.windowing.DefaultWindowFuture
 
isDone() - Method in interface com.cloudhopper.commons.util.windowing.WindowFuture
Returns true if and only if this future is complete, regardless of whether the operation was successful, failed, or cancelled.
isEmpty() - Method in class com.cloudhopper.commons.util.ByteBuffer
Tests if the buffer is empty.
isEmpty() - Method in class com.cloudhopper.commons.util.CircularIndex
Checks if the index is currently empty (contains no elements).
isEmpty(String) - Static method in class com.cloudhopper.commons.util.StringUtil
Checks if the string is an empty value which is true if the string is null or if the string represents an empty string of "".
isEqual(String, String) - Static method in class com.cloudhopper.commons.util.StringUtil
 
isEqual(String, String, boolean) - Static method in class com.cloudhopper.commons.util.StringUtil
Checks if both strings are equal to each other.
isExpected() - Method in class com.cloudhopper.commons.util.TimedStateBoolean
Tests whether this state boolean is what we would expect it to be.
isFileExtensionSupported(String) - Static method in class com.cloudhopper.commons.util.CompressionUtil
Checks if the file extension such as "gz" or "zip" is supported by this utility class.
isFree(int) - Method in class com.cloudhopper.commons.util.ByteBuffer
Tests if the buffer has enough free space to store N bytes.
isFull() - Method in class com.cloudhopper.commons.util.ByteBuffer
Tests if the buffer is full.
isFull() - Method in class com.cloudhopper.commons.util.CircularIndex
Checks if the index is currently full (contains all elements).
isPrintableChar(char) - Static method in class com.cloudhopper.commons.util.StringUtil
Return true if the character is printable in ASCII.
isSafeChar(char) - Static method in class com.cloudhopper.commons.util.StringUtil
Returns true if the char is considered a "safe" char.
isSafeString(String) - Static method in class com.cloudhopper.commons.util.StringUtil
Returns true if the String is considered a "safe" string where only specific characters are allowed to be used.
isSuccess() - Method in class com.cloudhopper.commons.util.windowing.DefaultWindowFuture
 
isSuccess() - Method in interface com.cloudhopper.commons.util.windowing.WindowFuture
Returns true if and only if the operation was completed successfully.
isValidFileExtension(String) - Static method in class com.cloudhopper.commons.util.FileUtil
Checks if the extension is valid.

L

last12Months(DateTimeZone) - Static method in class com.cloudhopper.commons.util.time.DateTimePeriodSelector
Create a list of DateTimePeriods that represent the last 12 month periods based on the current date.
lastMonth(DateTimeZone) - Static method in class com.cloudhopper.commons.util.time.DateTimePeriodSelector
 
Level - Enum in com.cloudhopper.commons.util.annotation
Level of a MetaField.
level - Variable in class com.cloudhopper.commons.util.MetaFieldInfo
 
LoadBalancedList<E> - Interface in com.cloudhopper.commons.util
A list that can act like a load balancer by internally tracking which item to return next.
LoadBalancedList.Node<E> - Class in com.cloudhopper.commons.util
 
LoadBalancedList.Node(E) - Constructor for class com.cloudhopper.commons.util.LoadBalancedList.Node
 
LoadBalancedList.Node(E, int) - Constructor for class com.cloudhopper.commons.util.LoadBalancedList.Node
 
LoadBalancedLists - Class in com.cloudhopper.commons.util
Utilities for working with LoadBalancedList objects.
LoadBalancedLists() - Constructor for class com.cloudhopper.commons.util.LoadBalancedLists
 

M

ManagementUtil - Class in com.cloudhopper.commons.util
 
ManagementUtil() - Constructor for class com.cloudhopper.commons.util.ManagementUtil
 
MetaField - Annotation Type in com.cloudhopper.commons.util.annotation
Annotation for including extra meta data about a field inside a class.
MetaFieldInfo - Class in com.cloudhopper.commons.util
Simple class to display a counter's name, value, and description based on current values and annotations.
MetaFieldInfo() - Constructor for class com.cloudhopper.commons.util.MetaFieldInfo
 
MetaFieldUtil - Class in com.cloudhopper.commons.util
Utility class for generating an array of MetaFieldInfo objects at runtime by reflecting a class and searching for the MetaField annotation.
MetaFieldUtil() - Constructor for class com.cloudhopper.commons.util.MetaFieldUtil
 

N

name - Variable in class com.cloudhopper.commons.util.MetaFieldInfo
 
NameValue<N,V> - Class in com.cloudhopper.commons.util
Represents a NameValue with generics.
NameValue(N, V) - Constructor for class com.cloudhopper.commons.util.NameValue
 
NamingThreadFactory - Class in com.cloudhopper.commons.util
A ThreadFactory that standardizes the two most common customizations: thread name and whether a thread will be a daemon.
NamingThreadFactory(String) - Constructor for class com.cloudhopper.commons.util.NamingThreadFactory
Creates a new NamingThreadFactory.
NamingThreadFactory(String, boolean) - Constructor for class com.cloudhopper.commons.util.NamingThreadFactory
Creates a new NamingThreadFactory.
newThread(Runnable) - Method in class com.cloudhopper.commons.util.NamingThreadFactory
 
next() - Method in class com.cloudhopper.commons.util.Sequencer
 
normalizeSQLIdentifier(String) - Static method in class com.cloudhopper.commons.util.StringUtil
Normalize a SQL identifer, up-casing if , and handling of (SQL 2003, section 5.2).
now() - Static method in class com.cloudhopper.commons.util.DateTimeUtil
Get the current time as a DateTime.
NULL - Static variable in class com.cloudhopper.commons.util.HexString
 

O

occurrences(byte) - Method in class com.cloudhopper.commons.util.ByteBuffer
Counts the number of occurrences of the byte in this ByteBuffer.
occurrences(byte[]) - Method in class com.cloudhopper.commons.util.ByteBuffer
Counts the number of occurrences of the byte array in this ByteBuffer.
offer(K, R, long) - Method in class com.cloudhopper.commons.util.windowing.Window
Offers a request for acceptance, waiting for the specified amount of time in case it could not immediately accepted.
offer(K, R, long, long) - Method in class com.cloudhopper.commons.util.windowing.Window
Offers a request for acceptance, waiting for the specified amount of time in case it could not immediately accepted.
offer(K, R, long, long, boolean) - Method in class com.cloudhopper.commons.util.windowing.Window
Offers a request for acceptance, waiting for the specified amount of time in case it could not immediately accepted.
OfferTimeoutException - Exception in com.cloudhopper.commons.util.windowing
Thrown if an offer cannot be accepted within a specified amount of time.
OfferTimeoutException(String) - Constructor for exception com.cloudhopper.commons.util.windowing.OfferTimeoutException
 
OfferTimeoutException(String, Throwable) - Constructor for exception com.cloudhopper.commons.util.windowing.OfferTimeoutException
 
out - Variable in class com.cloudhopper.commons.util.codec.URLDecoder
 
out - Variable in class com.cloudhopper.commons.util.codec.URLEncoder
 
out - Variable in class com.cloudhopper.commons.util.codec.URLEncoderOutputStream
 

P

padLeading(String, int) - Static method in class com.cloudhopper.commons.util.ByteUtil
 
parse(String) - Static method in class com.cloudhopper.commons.util.URLParser
 
parseEmbedded(String) - Static method in class com.cloudhopper.commons.util.DateTimeUtil
Parses a string for an embedded date and/or time contained within a string such as "app.2008-05-01.log".
parseEmbedded(String, String, DateTimeZone) - Static method in class com.cloudhopper.commons.util.DateTimeUtil
Parses a string for an embedded date and/or time contained within a string such as "app.2008-05-01.log" or "app-20090624-051112.log.gz".
parseFileExtension(String) - Static method in class com.cloudhopper.commons.util.FileUtil
Parse the filename and return the file extension.
parseQueryProperties(String, Properties) - Static method in class com.cloudhopper.commons.util.URL
Tool function: queries a query string and adds the key/value pairs to the specified properties map
PendingOfferAbortedException - Exception in com.cloudhopper.commons.util.windowing
Thrown when a caller/thread is waiting for an offer to be accepted, but abortPendingOffers() is called by a different thread.
PendingOfferAbortedException(String) - Constructor for exception com.cloudhopper.commons.util.windowing.PendingOfferAbortedException
 
PendingOfferAbortedException(String, Throwable) - Constructor for exception com.cloudhopper.commons.util.windowing.PendingOfferAbortedException
 
PeriodFormatterUtil - Class in com.cloudhopper.commons.util
Utility class to create useful Joda PeriodFormatters.
PeriodFormatterUtil() - Constructor for class com.cloudhopper.commons.util.PeriodFormatterUtil
 
put(String, V) - Method in class com.cloudhopper.commons.util.DigitLookupMap
Associates the value with the key in this map.
put(String, V) - Method in interface com.cloudhopper.commons.util.SimpleMap
Associates the specified value with the specified key in this map.
put(String, V) - Method in class com.cloudhopper.commons.util.StringLookupMap
 

Q

quoteStringLiteral(String) - Static method in class com.cloudhopper.commons.util.StringUtil
Quote a string so that it can be used as a string literal in an SQL statement.

R

RandomUtil - Class in com.cloudhopper.commons.util
Utility class for using and generating random object such as strings.
RandomUtil() - Constructor for class com.cloudhopper.commons.util.RandomUtil
 
readToString(InputStream) - Static method in class com.cloudhopper.commons.util.StringUtil
 
rebuildRemainingItems() - Method in class com.cloudhopper.commons.util.RoundRobinLoadBalancedList
 
rejectedExecution(Runnable, ThreadPoolExecutor) - Method in class com.cloudhopper.commons.util.CountingRejectedExecutionHandler
 
remove() - Method in class com.cloudhopper.commons.util.ByteBuffer
Removes the first (oldest/head) byte in the buffer.
remove(int) - Method in class com.cloudhopper.commons.util.ByteBuffer
Removes a byte array of the first N bytes in the buffer.
remove(E) - Method in interface com.cloudhopper.commons.util.LoadBalancedList
Removes an item from the list.
remove(E) - Method in class com.cloudhopper.commons.util.RoundRobinLoadBalancedList
 
removeAllCharsExceptDigits(String) - Static method in class com.cloudhopper.commons.util.StringUtil
Removes all other characters from a string except digits.
removeFirst() - Method in class com.cloudhopper.commons.util.CircularIndex
Removes the first element from the front of the index if its not empty.
removeLast() - Method in class com.cloudhopper.commons.util.CircularIndex
Removes the last element from the back of the index if its not empty.
removeListener(WindowListener<K, R, P>) - Method in class com.cloudhopper.commons.util.windowing.Window
Removes a WindowListener if it is present.
reset() - Method in class com.cloudhopper.commons.util.CircularIndex
Resets index back to defaults with a zero size and no elements.
reset() - Method in class com.cloudhopper.commons.util.CountingRejectedExecutionHandler
 
resetCountsAndRebuildRemainingItems() - Method in class com.cloudhopper.commons.util.RoundRobinLoadBalancedList
 
RoundRobinLoadBalancedList<E> - Class in com.cloudhopper.commons.util
Implementation of a load balanced list that returns items using a weighted, round-robin algorithm.
RoundRobinLoadBalancedList() - Constructor for class com.cloudhopper.commons.util.RoundRobinLoadBalancedList
 
run() - Method in class com.cloudhopper.commons.util.windowing.WindowMonitor
 
RunningAverage - Class in com.cloudhopper.commons.util
Same as RunningTotal, but provides the average in its toString() method vs.
RunningAverage(int, int) - Constructor for class com.cloudhopper.commons.util.RunningAverage
 
RunningTotal - Class in com.cloudhopper.commons.util
Helps maintain a running total of X number of longs.
RunningTotal(int) - Constructor for class com.cloudhopper.commons.util.RunningTotal
 

S

Sequencer - Class in com.cloudhopper.commons.util
This class implements an extremely efficient, thread-safe way to generate a simple incrementing sequence of Longs.
Sequencer() - Constructor for class com.cloudhopper.commons.util.Sequencer
Constructs a new instance of Sequencer a default starting sequence number of 0.
Sequencer(long) - Constructor for class com.cloudhopper.commons.util.Sequencer
Constructs a new instance of Sequencer with the specified starting value.
set(Object, Object) - Method in class com.cloudhopper.commons.util.BeanProperty
Sets the property value on the object.
set(E, int) - Method in interface com.cloudhopper.commons.util.LoadBalancedList
Adds the item to the list if it doesn't yet exist.
set(E, int) - Method in class com.cloudhopper.commons.util.RoundRobinLoadBalancedList
 
set(boolean) - Method in class com.cloudhopper.commons.util.TimedStateBoolean
Unconditionally sets to the given value.
setCallerStateHint(int) - Method in class com.cloudhopper.commons.util.windowing.DefaultWindowFuture
 
setCount(int) - Method in class com.cloudhopper.commons.util.LoadBalancedList.Node
 
setHost(String) - Method in class com.cloudhopper.commons.util.URL
Sets the host such as "www.google.com" if the URL is "http://www.google.com"
setPassword(String) - Method in class com.cloudhopper.commons.util.URL
Sets the password such as "test" if the URL is "http://root:test@www.google.com/" or "t@st" if the URL is "http://root:t%40st@www.google.com/".
setPath(String) - Method in class com.cloudhopper.commons.util.URL
Sets the path such as "/" if the URL is "http://www.google.com/" or "/My Documents/index.html" if the URL is "http://www.google.com/My+Documents/index.html".
setPort(Integer) - Method in class com.cloudhopper.commons.util.URL
Sets the port such as 80 if the URL should specifically include a port such as "http://www.google.com:80/".
setProtocol(String) - Method in class com.cloudhopper.commons.util.URL
Sets the protocol such as "http" if the URL is "http://www.google.com"
setQuery(String) - Method in class com.cloudhopper.commons.util.URL
 
setUsername(String) - Method in class com.cloudhopper.commons.util.URL
Sets the username such as "root" if the URL is "http://root@www.google.com/" or "ro@t" if the URL is "http://ro%40t@www.google.com/".
setWeight(int) - Method in class com.cloudhopper.commons.util.LoadBalancedList.Node
 
SimpleMap<V> - Interface in com.cloudhopper.commons.util
A more simplified map interface than a java.util.Map where only a small subset of functionality is supported.
singleByteBuffer - Variable in class com.cloudhopper.commons.util.codec.URLEncoderOutputStream
 
singleCharBuffer - Variable in class com.cloudhopper.commons.util.codec.URLDecoder
 
singleCharBuffer - Variable in class com.cloudhopper.commons.util.codec.URLEncoder
 
size() - Method in class com.cloudhopper.commons.util.ByteBuffer
Gets the current buffer size.
size() - Method in class com.cloudhopper.commons.util.DigitLookupMap
Returns the number of key-value mappings in this map.
size() - Method in interface com.cloudhopper.commons.util.SimpleMap
Returns the number of key-value mappings in this map.
size() - Method in class com.cloudhopper.commons.util.StringLookupMap
 
slice(String, int, int, boolean) - Static method in class com.cloudhopper.commons.util.StringUtil
Return a slice (substring) of the passed in value, optionally trimmed.
split(String, char) - Static method in class com.cloudhopper.commons.util.StringUtil
Splits a string around matches of the given delimiter character.
splitHostFQDN(String) - Static method in class com.cloudhopper.commons.util.EnvironmentUtil
 
SQLEqualsIgnoreCase(String, String) - Static method in class com.cloudhopper.commons.util.StringUtil
Compares two strings Strings will be uppercased in english and compared equivalent to s1.equalsIgnoreCase(s2) throws NPE if s1 is null
SQLToUpperCase(String) - Static method in class com.cloudhopper.commons.util.StringUtil
Convert string to uppercase Always use the java.util.ENGLISH locale
StackTraceUtil - Class in com.cloudhopper.commons.util
Simple utilities to return the stack trace of an exception as a String.
StackTraceUtil() - Constructor for class com.cloudhopper.commons.util.StackTraceUtil
 
startMonitor() - Method in class com.cloudhopper.commons.util.windowing.Window
Starts the monitor if this Window has an executor.
startsWith(byte[]) - Method in class com.cloudhopper.commons.util.ByteBuffer
Tests if the buffer starts with the byte array prefix.
stopMonitor() - Method in class com.cloudhopper.commons.util.windowing.Window
Stops the monitor if its running.
stringify(int[]) - Static method in class com.cloudhopper.commons.util.StringUtil
Turn an array of ints into a printable string.
StringLookupMap<V> - Class in com.cloudhopper.commons.util
A more simplified map interface than a java.util.Map where only a small subset of functionality is supported.
StringLookupMap() - Constructor for class com.cloudhopper.commons.util.StringLookupMap
 
StringLookupMap(boolean) - Constructor for class com.cloudhopper.commons.util.StringLookupMap
 
StringUtil - Class in com.cloudhopper.commons.util
A set of String utilities.
StringUtil() - Constructor for class com.cloudhopper.commons.util.StringUtil
 
stripQuotes(String) - Static method in class com.cloudhopper.commons.util.StringUtil
If present, this method will strip off the leading and trailing " character in the string parameter.
substituteWithEnvironment(String) - Static method in class com.cloudhopper.commons.util.StringUtil
Searches the string for occurrences of the pattern $ENV{key} and attempts to replace this pattern with a value from the System environment obtained using the 'key'.
substituteWithProperties(String, String, String, Properties) - Static method in class com.cloudhopper.commons.util.StringUtil
Searches string for occurrences of a pattern, extracts out a key name between the startStr and endStr tokens, then attempts to replace the property value into the string.
SubstitutionException - Exception in com.cloudhopper.commons.util
Root exception for StringUtil where environment variables can be used to replace certain properties.
SubstitutionException(String) - Constructor for exception com.cloudhopper.commons.util.SubstitutionException
Constructs an instance of SubstitutionException with the specified detail message.
synchronizedList(LoadBalancedList<E>) - Static method in class com.cloudhopper.commons.util.LoadBalancedLists
Creates a synchronized version of a LoadBalancedList by putting a lock around any method that reads or writes to the internal data structure.

T

thisMonth(DateTimeZone) - Static method in class com.cloudhopper.commons.util.time.DateTimePeriodSelector
 
ThreadUtil - Class in com.cloudhopper.commons.util
A utility class for working with threads in a JVM.
ThreadUtil() - Constructor for class com.cloudhopper.commons.util.ThreadUtil
 
TimedStateBoolean - Class in com.cloudhopper.commons.util
Wrapper around Java AtomicBoolean to include the DateTime of when the state last changed, effectively providing a "time" of the current state.
TimedStateBoolean(boolean) - Constructor for class com.cloudhopper.commons.util.TimedStateBoolean
Creates a new instance with the initalValue.
TimedStateBoolean(boolean, boolean) - Constructor for class com.cloudhopper.commons.util.TimedStateBoolean
Creates a new instance with the initalValue.
toArray() - Method in class com.cloudhopper.commons.util.ByteBuffer
Gets a copy of the current buffer as byte array.
toArray(int, int) - Method in class com.cloudhopper.commons.util.ByteBuffer
Gets a copy of the current buffer as byte array, but only copies data starting from an offset and length.
toArray(int, int, int) - Method in class com.cloudhopper.commons.util.ByteBuffer
Gets a copy of the current buffer as byte array, but the new byte[] has the specified capacity.
toArray(int, int, byte[], int) - Method in class com.cloudhopper.commons.util.ByteBuffer
Will copy data from this ByteBuffer's buffer into the targetBuffer.
toByte(byte[]) - Static method in class com.cloudhopper.commons.util.ByteArrayUtil
 
toByte(byte[], int, int) - Static method in class com.cloudhopper.commons.util.ByteArrayUtil
 
toByteArray(byte) - Static method in class com.cloudhopper.commons.util.ByteArrayUtil
 
toByteArray(short) - Static method in class com.cloudhopper.commons.util.ByteArrayUtil
 
toByteArray(int) - Static method in class com.cloudhopper.commons.util.ByteArrayUtil
 
toByteArray(long) - Static method in class com.cloudhopper.commons.util.ByteArrayUtil
 
toByteArray() - Method in class com.cloudhopper.commons.util.FastByteArrayOutputStream
 
toByteArray(CharSequence) - Static method in class com.cloudhopper.commons.util.HexUtil
Creates a byte array from a CharSequence (String, StringBuilder, etc.) containing only valid hexidecimal formatted characters.
toByteArray(CharSequence, int, int) - Static method in class com.cloudhopper.commons.util.HexUtil
Creates a byte array from a CharSequence (String, StringBuilder, etc.) containing only valid hexidecimal formatted characters.
toCorrectKeyCaseSensitivity(String) - Method in class com.cloudhopper.commons.util.StringLookupMap
 
toDateTime(Timestamp) - Static method in class com.cloudhopper.commons.util.DateTimeUtil
Null-safe method of converting a SQL Timestamp into a DateTime that it set specifically to be in UTC.
toDays() - Method in class com.cloudhopper.commons.util.time.DateTimePeriod
Converts this period to a list of day periods.
toFiveMinutes() - Method in class com.cloudhopper.commons.util.time.DateTimePeriod
Converts this period to a list of five minute periods.
toHashedBase64String(String) - Method in class com.cloudhopper.commons.util.Hasher
Hashes the input String into a Base-64 encoded hashed String.
toHashedBase64String(byte[]) - Method in class com.cloudhopper.commons.util.Hasher
Hashes the input bytes into a Base-64 encoded hashed String.
toHashedBytes(byte[]) - Method in class com.cloudhopper.commons.util.Hasher
Hashes the input bytes into a hashed byte[] -- no special encoding.
toHashedHexString(String) - Method in class com.cloudhopper.commons.util.Hasher
Hashes the input String into a hex encoded hashed String.
toHashedHexString(byte[]) - Method in class com.cloudhopper.commons.util.Hasher
Hashes the input bytes into a hex encoded hashed String.
toHexByte(String, int, int) - Static method in class com.cloudhopper.commons.util.StringUtil
Deprecated.
Please use new utility class HexUtil
toHexString() - Method in class com.cloudhopper.commons.util.ByteBuffer
Return a hexidecimal String representation of the current buffer with each byte displayed in a 2 character hexidecimal format.
toHexString(int, int) - Method in class com.cloudhopper.commons.util.ByteBuffer
Return a hexidecimal String representation of the current buffer with each byte displayed in a 2 character hexidecimal format.
toHexString(byte[]) - Static method in class com.cloudhopper.commons.util.HexUtil
Creates a String from a byte array with each byte in a "Big Endian" hexidecimal format.
toHexString(byte[], int, int) - Static method in class com.cloudhopper.commons.util.HexUtil
Creates a String from a byte array with each byte in a "Big Endian" hexidecimal format.
toHexString(byte) - Static method in class com.cloudhopper.commons.util.HexUtil
Creates a 2 character hex String from a byte with the byte in a "Big Endian" hexidecimal format.
toHexString(short) - Static method in class com.cloudhopper.commons.util.HexUtil
Creates a 4 character hex String from a short with the short in a "Big Endian" hexidecimal format.
toHexString(int) - Static method in class com.cloudhopper.commons.util.HexUtil
Creates an 8 character hex String from an int twith the int in a "Big Endian" hexidecimal format.
toHexString(long) - Static method in class com.cloudhopper.commons.util.HexUtil
Creates a 16 character hex String from a long with the long in a "Big Endian" hexidecimal format.
toHexString(byte[]) - Static method in class com.cloudhopper.commons.util.StringUtil
Deprecated.
Please use new utility class HexUtil
toHexString(byte[], int, int) - Static method in class com.cloudhopper.commons.util.StringUtil
Deprecated.
Please use new utility class HexUtil
toHours() - Method in class com.cloudhopper.commons.util.time.DateTimePeriod
Converts this period to a list of hour periods.
toInt() - Method in enum com.cloudhopper.commons.util.annotation.Level
 
toInt(byte[]) - Static method in class com.cloudhopper.commons.util.ByteArrayUtil
 
toInt(byte[], int, int) - Static method in class com.cloudhopper.commons.util.ByteArrayUtil
 
toLinuxUptimeStyleString(long) - Static method in class com.cloudhopper.commons.util.PeriodFormatterUtil
Helper method to create a "Linux" uptime styled string that represents the duration (in milliseconds).
toLong(byte[]) - Static method in class com.cloudhopper.commons.util.ByteArrayUtil
 
toLong(byte[], int, int) - Static method in class com.cloudhopper.commons.util.ByteArrayUtil
 
toMetaFieldInfoArray(Object) - Static method in class com.cloudhopper.commons.util.MetaFieldUtil
Returns a new MetaFieldInfo array of all Fields annotated with MetaField in the runtime object type.
toMetaFieldInfoArray(Object, String) - Static method in class com.cloudhopper.commons.util.MetaFieldUtil
Returns a new MetaFieldInfo array of all Fields annotated with MetaField in the runtime object type.
toMetaFieldInfoArray(Object, String, boolean) - Static method in class com.cloudhopper.commons.util.MetaFieldUtil
Returns a new MetaFieldInfo array of all Fields annotated with MetaField in the runtime object type.
toMetaFieldInfoArray(Class, Object, String, boolean, boolean) - Static method in class com.cloudhopper.commons.util.MetaFieldUtil
Returns a new MetaFieldInfo array of all Fields annotated with MetaField in the object type.
toMetaFieldInfoString(Object) - Static method in class com.cloudhopper.commons.util.MetaFieldUtil
Creates a string for an object based on the MetaField annotations.
toMonths() - Method in class com.cloudhopper.commons.util.time.DateTimePeriod
Converts this period to a list of month periods.
toNodeArrayIndex(char) - Static method in class com.cloudhopper.commons.util.DigitLookupMap
Returns the node array index of the character for 0-9, or 10 for the '*' character.
toPeriods(DateTimeDuration) - Method in class com.cloudhopper.commons.util.time.DateTimePeriod
Converts this period to a list of periods for the given duration.
toShort(byte[]) - Static method in class com.cloudhopper.commons.util.ByteArrayUtil
 
toShort(byte[], int, int) - Static method in class com.cloudhopper.commons.util.ByteArrayUtil
 
toStackTraceString(String, StackTraceElement[]) - Static method in class com.cloudhopper.commons.util.StackTraceUtil
Defines a custom format for the stack trace as String.
toStandardUptimeStyleString(long) - Static method in class com.cloudhopper.commons.util.PeriodFormatterUtil
Helper method to create a "Standard" uptime styled string that represents the duration (in milliseconds).
toString() - Method in class com.cloudhopper.commons.util.ByteBuffer
Returns a string representation of the current buffer.
toString() - Method in class com.cloudhopper.commons.util.CircularIndex
 
toString(double, int) - Static method in class com.cloudhopper.commons.util.DecimalUtil
Thread-safe version of converting a double value to a String when only a certain number of digits are desired after a decimal point.
toString() - Method in class com.cloudhopper.commons.util.FastByteArrayOutputStream
 
toString() - Method in enum com.cloudhopper.commons.util.Hasher.Algorithm
 
toString() - Method in class com.cloudhopper.commons.util.HexString
 
toString() - Method in class com.cloudhopper.commons.util.LoadBalancedList.Node
 
toString() - Method in class com.cloudhopper.commons.util.RoundRobinLoadBalancedList
 
toString() - Method in class com.cloudhopper.commons.util.RunningAverage
Returns a string representing the current running average.
toString(int) - Method in class com.cloudhopper.commons.util.RunningAverage
Returns a string representing the current running average, but will use the new precision rather than the one in the constructor.
toString() - Method in class com.cloudhopper.commons.util.RunningTotal
Returns a string representing the current running total.
toString() - Method in class com.cloudhopper.commons.util.TimedStateBoolean
 
toString() - Method in class com.cloudhopper.commons.util.URL
Builds and returns a properly encoded URL in its full string form such as "http://www.google.com/".
toStringArray(Object[]) - Static method in class com.cloudhopper.commons.util.StringUtil
A method that receive an array of Objects and return a String array representation of that array.
toStringWithNullAsEmpty(Object) - Static method in class com.cloudhopper.commons.util.StringUtil
Returns the value from calling "toString()" on the object, but is a safe version that gracefully handles NULL objects by returning a String of "".
toStringWithNullAsNull(Object) - Static method in class com.cloudhopper.commons.util.StringUtil
Returns the value from calling "toString()" on the object, but is a safe version that gracefully handles NULL objects by returning null (rather than causing a NullPointerException).
toStringWithNullAsReplaced(Object) - Static method in class com.cloudhopper.commons.util.StringUtil
Returns the value from calling "toString()" on the object, but is a safe version that gracefully handles NULL objects by returning a String of "".
toTimestamp(DateTime) - Static method in class com.cloudhopper.commons.util.DateTimeUtil
Null-safe method of converting a DateTime to a Timestamp.
toUnsignedByte(byte[]) - Static method in class com.cloudhopper.commons.util.ByteArrayUtil
 
toUnsignedByte(byte[], int, int) - Static method in class com.cloudhopper.commons.util.ByteArrayUtil
 
toUnsignedInt(byte[]) - Static method in class com.cloudhopper.commons.util.ByteArrayUtil
 
toUnsignedInt(byte[], int, int) - Static method in class com.cloudhopper.commons.util.ByteArrayUtil
 
toUnsignedShort(byte[]) - Static method in class com.cloudhopper.commons.util.ByteArrayUtil
 
toUnsignedShort(byte[], int, int) - Static method in class com.cloudhopper.commons.util.ByteArrayUtil
 
toYears() - Method in class com.cloudhopper.commons.util.time.DateTimePeriod
Converts this period to a list of year periods.
trimTrailing(String) - Static method in class com.cloudhopper.commons.util.StringUtil
Trim off trailing blanks but not leading blanks
truncate(String, int) - Static method in class com.cloudhopper.commons.util.StringUtil
Truncate a String to the given length with no warnings or error raised if it is bigger.

U

uncapitalize(String) - Static method in class com.cloudhopper.commons.util.StringUtil
Safely uncapitalizes a string by converting the first character to lower case.
uncompress(File, boolean) - Static method in class com.cloudhopper.commons.util.CompressionUtil
Uncompresses the source file using a variety of supported compression algorithms.
uncompress(File, File, boolean) - Static method in class com.cloudhopper.commons.util.CompressionUtil
Uncompresses the source file using a variety of supported compression algorithms.
UNRESERVED - Static variable in class com.cloudhopper.commons.util.codec.URLCodec
http://tools.ietf.org/html/rfc3986#section-2
UnwrappedWeakReference<T> - Class in com.cloudhopper.commons.util
Smarter WeakReference that "unwraps" the referenced object in a few methods such as "equals()" which let a WeakReference be used in many other types of collections and lists and have them still work correctly.
UnwrappedWeakReference(T) - Constructor for class com.cloudhopper.commons.util.UnwrappedWeakReference
 
URL - Class in com.cloudhopper.commons.util
Represents a URL and its various properties.
URL() - Constructor for class com.cloudhopper.commons.util.URL
 
URLCodec - Class in com.cloudhopper.commons.util.codec
http://ziesemer.dev.java.net/
URLCodec() - Constructor for class com.cloudhopper.commons.util.codec.URLCodec
 
URLDecoder - Class in com.cloudhopper.commons.util.codec
http://ziesemer.dev.java.net/
URLDecoder(Appendable) - Constructor for class com.cloudhopper.commons.util.codec.URLDecoder
Decodes to the specified Appendable, using URLDecoder.DEFAULT_BUFFER_SIZE and URLCodec.UTF_8.
URLDecoder(Appendable, int) - Constructor for class com.cloudhopper.commons.util.codec.URLDecoder
Decodes to the specified Appendable with the specified bufferSize, using URLCodec.UTF_8.
URLDecoder(Appendable, int, Charset) - Constructor for class com.cloudhopper.commons.util.codec.URLDecoder
Decodes to the specified Appendable with the specified bufferSize and charset.
URLEncoder - Class in com.cloudhopper.commons.util.codec
http://ziesemer.dev.java.net/
URLEncoder(Appendable) - Constructor for class com.cloudhopper.commons.util.codec.URLEncoder
Encodes to the specified Appendable, using URLEncoder.DEFAULT_BUFFER_SIZE and URLCodec.UTF_8.
URLEncoder(Appendable, int) - Constructor for class com.cloudhopper.commons.util.codec.URLEncoder
Encodes to the specified Appendable with the specified bufferSize, using URLCodec.UTF_8.
URLEncoder(Appendable, int, Charset) - Constructor for class com.cloudhopper.commons.util.codec.URLEncoder
Encodes to the specified Appendable with the specified bufferSize and charset.
URLEncoderOutputStream - Class in com.cloudhopper.commons.util.codec
Similar to URLEncoder, but designed to work with byte and byte array inputs.
URLEncoderOutputStream(Appendable) - Constructor for class com.cloudhopper.commons.util.codec.URLEncoderOutputStream
Encodes to the specified Appendable.
URLParser - Class in com.cloudhopper.commons.util
A URL parser for the following pattern: protocol://[username[:password]@][host[:port]][/path] Examples: p:/// p://h p://h:p p://u@h:p p://u:p@h:p p://h/path/to/something
UTF_8 - Static variable in class com.cloudhopper.commons.util.codec.URLCodec
 

V

value - Variable in class com.cloudhopper.commons.util.MetaFieldInfo
 
valueOf(String) - Static method in enum com.cloudhopper.commons.util.annotation.Level
Returns the enum constant of this type with the specified name.
valueOf(int) - Static method in enum com.cloudhopper.commons.util.annotation.Level
 
valueOf(String) - Static method in enum com.cloudhopper.commons.util.CompressionUtil.Algorithm
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.cloudhopper.commons.util.Hasher.Algorithm
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in class com.cloudhopper.commons.util.HexString
Create a new HexString instance from the given hexadecimal string.
valueOf(byte[]) - Static method in class com.cloudhopper.commons.util.HexString
Create a new HexString instance from the given byte array.
valueOf(String) - Static method in enum com.cloudhopper.commons.util.time.DateTimeDuration
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.cloudhopper.commons.util.annotation.Level
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.cloudhopper.commons.util.CompressionUtil.Algorithm
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.cloudhopper.commons.util.Hasher.Algorithm
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.cloudhopper.commons.util.time.DateTimeDuration
Returns an array containing the constants of this enum type, in the order they are declared.

W

Window<K,R,P> - Class in com.cloudhopper.commons.util.windowing
A utility class to support "windowed" protocols that permit requests to be sent asynchronously and the responses to be processed at a later time.
Window(int) - Constructor for class com.cloudhopper.commons.util.windowing.Window
Creates a new window with the specified max window size.
Window(int, ScheduledExecutorService, long, WindowListener<K, R, P>) - Constructor for class com.cloudhopper.commons.util.windowing.Window
Creates a new window with the specified max window size.
Window(int, ScheduledExecutorService, long, WindowListener<K, R, P>, String) - Constructor for class com.cloudhopper.commons.util.windowing.Window
Creates a new window with the specified max window size.
WindowFuture<K,R,P> - Interface in com.cloudhopper.commons.util.windowing
A WindowFuture is either uncompleted or completed.
WindowListener<K,R,P> - Interface in com.cloudhopper.commons.util.windowing
Interface for listening to events triggered by a window.
WindowMonitor<K,R,P> - Class in com.cloudhopper.commons.util.windowing
Internal utility class to monitor the window and send events upstream to listeners.
WindowMonitor(Window<K, R, P>, String) - Constructor for class com.cloudhopper.commons.util.windowing.WindowMonitor
 
write(int) - Method in class com.cloudhopper.commons.util.codec.URLEncoderOutputStream
 
write(byte[], int, int) - Method in class com.cloudhopper.commons.util.codec.URLEncoderOutputStream
 
write(int) - Method in class com.cloudhopper.commons.util.FastByteArrayOutputStream
 
write(byte[], int, int) - Method in class com.cloudhopper.commons.util.FastByteArrayOutputStream
 
writeTo(OutputStream) - Method in class com.cloudhopper.commons.util.FastByteArrayOutputStream
 
writeTo(RandomAccessFile) - Method in class com.cloudhopper.commons.util.FastByteArrayOutputStream
 
writeTo(Writer, String) - Method in class com.cloudhopper.commons.util.FastByteArrayOutputStream
 
A B C D E F G H I L M N O P Q R S T U V W 

Copyright © 2012-2015 Cloudhopper by Twitter. All Rights Reserved.