A C D E F G H I M N P Q R S T V X

A

add(String, Object) - Method in class com.threerings.servlet.util.FlashVarBuilder
Adds the given value to the parameter mapping under key replacing any current value.
add(String, Object) - Method in class com.threerings.servlet.util.QueryBuilder
Adds the given value to the parameter mapping under key adding to any current value.
addAll(HttpServletRequest) - Method in class com.threerings.servlet.util.FlashVarBuilder
Adds all the parameters in req to the parameters being constructed.
addAll(HttpServletRequest) - Method in class com.threerings.servlet.util.QueryBuilder
Adds all the parameters in req to the parameters being constructed.
addSample(double) - Method in class com.threerings.util.RunningStats
Adds a new sample.
append(Object...) - Method in exception com.threerings.servlet.util.ConversionFailedException
Adds the given key value pairs to the message.
averageTime - Variable in class com.threerings.util.MethodProfiler.Result
Average time spent in the method.

C

com.threerings.servlet.util - package com.threerings.servlet.util
 
com.threerings.util - package com.threerings.util
 
compose(String, Object) - Static method in class com.threerings.util.MessageBundle
Composes a message key with a single argument.
compose(String, Object...) - Static method in class com.threerings.util.MessageBundle
Composes a message key with an array of arguments.
compose(String, String...) - Static method in class com.threerings.util.MessageBundle
Composes a message key with an array of arguments.
ConversionFailedException - Exception in com.threerings.servlet.util
Indicates that a converter couldn't handle a parameter value in .
ConversionFailedException(Throwable) - Constructor for exception com.threerings.servlet.util.ConversionFailedException
 
ConversionFailedException(Throwable, Object, Object...) - Constructor for exception com.threerings.servlet.util.ConversionFailedException
Creates an exception message with the given base message and key value pairs as formatted by LogBuilder.
ConversionFailedException(Object, Object...) - Constructor for exception com.threerings.servlet.util.ConversionFailedException
 
ConversionFailedException() - Constructor for exception com.threerings.servlet.util.ConversionFailedException
 
Converters - Class in com.threerings.servlet.util
 
Converters() - Constructor for class com.threerings.servlet.util.Converters
 

D

DAY - Static variable in class com.threerings.util.TimeUtil
Time unit constant.
DefaultMap<K,V> - Class in com.threerings.util
Provides a map implementation that automatically creates, and inserts into the map, a default value for any value retrieved via the fetch(K) method which has no entry for that key.

E

elapsedSeconds(long, long) - Static method in class com.threerings.util.TimeUtil
Returns (in seconds) the time elapsed between the supplied start and end timestamps (which must be in milliseconds).
enter(String) - Method in class com.threerings.util.MethodProfiler
Notes that the calling thread has entered the given method and records the time stamp.
entries() - Method in class com.threerings.servlet.util.Parameters
Returns all the names and values in the parameters.
exists(String) - Method in class com.threerings.util.MessageBundle
Returns true if we have a translation mapping for the supplied key, false if not.
exit(String) - Method in class com.threerings.util.MethodProfiler
Notes that the calling thread has exited the given method and records the time delta since entry.
exitAndClear(String) - Method in class com.threerings.util.MethodProfiler
Clears out the profile for the current thread, and invokes the exit of the top-level method.

F

fetch(K) - Method in class com.threerings.util.DefaultMap
Looks up the supplied key in the map, returning the value to which it is mapped.
FlashVarBuilder - Class in com.threerings.servlet.util
 
FlashVarBuilder() - Constructor for class com.threerings.servlet.util.FlashVarBuilder
 

G

get(String) - Method in class com.threerings.servlet.util.Parameters
Returns the value for the parameter on this request or null if it has no such parameter.
get(String, String) - Method in class com.threerings.servlet.util.Parameters
Returns the value for the parameter on this request or def if it has no such parameter.
get(String, Function<String, T>, T) - Method in class com.threerings.servlet.util.Parameters
Returns the value for the parameter on this request as converted by converter or defif it has no such parameter.
get(String) - Method in class com.threerings.servlet.util.QueryBuilder
Returns the current values for key or an empty collection if there isn't a value.
get(String) - Method in class com.threerings.util.MessageBundle
Obtains the translation for the specified message key.
get(String, Object...) - Method in class com.threerings.util.MessageBundle
Obtains the translation for the specified message key.
get(String, String...) - Method in class com.threerings.util.MessageBundle
Obtains the translation for the specified message key.
getAll(String, String...) - Method in class com.threerings.servlet.util.Parameters
Returns all the values for the given parameter on the request, or defaultValues if it has no such parameter.
getAll(String, Function<String, T>, T...) - Method in class com.threerings.servlet.util.Parameters
Returns all the values for the given parameter on the request as converted by converter, or defaultValues if it has no such parameter.
getAll(String, Collection<String>, boolean) - Method in class com.threerings.util.MessageBundle
Adds all messages whose key starts with the specified prefix to the supplied collection.
getAllKeys(String, Collection<String>, boolean) - Method in class com.threerings.util.MessageBundle
Adds all keys for messages whose key starts with the specified prefix to the supplied collection.
getBundle(String) - Static method in class com.threerings.util.MessageBundle
Returns the bundle name from a fully qualified message key.
getBundle(String) - Method in class com.threerings.util.MessageManager
Fetches the message bundle for the specified path.
getFirst(String) - Method in class com.threerings.servlet.util.QueryBuilder
Retrieve the first value for the given key, or null if the key is not defined.
getLocale() - Method in class com.threerings.util.MessageManager
Get the locale that is being used to translate messages.
getMax() - Method in class com.threerings.util.RunningStats
Returns the maximum sample added or Double.NEGATIVE_INFINITY if no samples have been added.
getMean() - Method in class com.threerings.util.RunningStats
 
getMessage() - Method in exception com.threerings.servlet.util.ConversionFailedException
 
getMin() - Method in class com.threerings.util.RunningStats
Returns the minimum sample added or Double.POSITIVE_INFINITY if no samples have been added.
getNumSamples() - Method in class com.threerings.util.RunningStats
 
getOnly(String) - Method in class com.threerings.servlet.util.QueryBuilder
Retrieve the only value for the given key, or null if it's not defined.
getOnly(String, String) - Method in class com.threerings.servlet.util.QueryBuilder
Retrieve the only value for the given key, or the default value if it's not defined.
getResourceString(String) - Method in class com.threerings.util.MessageBundle
Get a String from the resource bundle, or null if there was an error.
getResourceString(String, boolean) - Method in class com.threerings.util.MessageBundle
Get a String from the resource bundle, or null if there was an error.
getResults() - Method in class com.threerings.util.MethodProfiler
Gets all method results so far.
getStandardDeviation() - Method in class com.threerings.util.RunningStats
 
getSuffix(Object[]) - Method in class com.threerings.util.MessageBundle
A helper function for MessageBundle.get(String,Object[]) that allows us to automatically perform plurality processing if our first argument can be coaxed to an Integer.
getTimeOrderString(long, byte) - Static method in class com.threerings.util.TimeUtil
Get a translatable string specifying the magnitude of the specified duration.
getTimeOrderString(long, byte, byte) - Static method in class com.threerings.util.TimeUtil
Get a translatable string specifying the magnitude of the specified duration, with the units of time bounded between the minimum and maximum specified.
getTimeString(long, byte) - Static method in class com.threerings.util.TimeUtil
Get a translatable string specifying the duration, down to the minimum granularity.
getTimeString(long, byte, boolean) - Static method in class com.threerings.util.TimeUtil
Get a translatable string specifying the duration, down to the minimum granularity.
getUnqualifiedKey(String) - Static method in class com.threerings.util.MessageBundle
Returns the unqualified portion of the key from a fully qualified message key.
getVariance() - Method in class com.threerings.util.RunningStats
 
GLOBAL_BUNDLE - Static variable in class com.threerings.util.MessageManager
The name of the global resource bundle (which other bundles revert to if they can't locate a message within themselves).

H

has(String) - Method in class com.threerings.servlet.util.Parameters
Returns true if the request contains the given parameter.
HOUR - Static variable in class com.threerings.util.TimeUtil
Time unit constant.

I

init(MessageManager, String, ResourceBundle, MessageBundle) - Method in class com.threerings.util.MessageBundle
Initializes the message bundle which will obtain localized messages from the supplied resource bundle.

M

main(String[]) - Static method in class com.threerings.util.MethodProfiler
Runs some very basic tests of the method profiler.
MessageBundle - Class in com.threerings.util
A message bundle provides an easy mechanism by which to obtain translated message strings from a resource bundle.
MessageBundle() - Constructor for class com.threerings.util.MessageBundle
 
MessageManager - Class in com.threerings.util
The message manager provides a thin wrapper around Java's built-in localization support, supporting a policy of dividing up localization resources into logical units, all of the translations for which are contained in a single messages file.
MessageManager(String) - Constructor for class com.threerings.util.MessageManager
Constructs a message manager with the supplied resource prefix and the default locale.
MethodProfiler - Class in com.threerings.util
Records the times that it takes to call methods.
MethodProfiler() - Constructor for class com.threerings.util.MethodProfiler
 
MethodProfiler.Result - Class in com.threerings.util
The results of sampling for a single method.
MILLISECOND - Static variable in class com.threerings.util.TimeUtil
Time unit constant.
MINUTE - Static variable in class com.threerings.util.TimeUtil
Time unit constant.

N

names() - Method in class com.threerings.servlet.util.Parameters
Returns an Iterable over all the parameter names for this request.
newHashMap(Function<K, V>) - Static method in class com.threerings.util.DefaultMap
Creates a default map backed by a HashMap using the supplied default creator.
newInstanceCreator(Class<V>) - Static method in class com.threerings.util.DefaultMap
Returns a Function that makes instances of the supplied class (using its no-args constructor) as default values.
newInstanceHashMap(Class<V>) - Static method in class com.threerings.util.DefaultMap
Creates a default map backed by a HashMap that creates instances of the supplied class (using its no-args constructor) as defaults.
newInstanceMap(Map<K, V>, Class<V>) - Static method in class com.threerings.util.DefaultMap
Creates a default map backed by the supplied map that creates instances of the supplied class (using its no-args constructor) as defaults.
newMap(Map<K, V>, Function<K, V>) - Static method in class com.threerings.util.DefaultMap
Creates a default map backed by the supplied map using the supplied default creator.
numSamples - Variable in class com.threerings.util.MethodProfiler.Result
Number of method calls sampled.

P

Parameters - Class in com.threerings.servlet.util
Provides convenient access to and conversion of the parameters of an HttpServletRequest.
Parameters(ServletRequest) - Constructor for class com.threerings.servlet.util.Parameters
 

Q

qualify(String, String) - Static method in class com.threerings.util.MessageBundle
Returns a fully qualified message key which, when translated by some other bundle, will know to resolve and utilize the supplied bundle to translate this particular key.
QueryBuilder - Class in com.threerings.servlet.util
 
QueryBuilder() - Constructor for class com.threerings.servlet.util.QueryBuilder
 

R

require(String) - Method in class com.threerings.servlet.util.Parameters
Returns the value for the parameter on this request or throws NullPointerException if it has no such parameter.
require(String, Function<String, T>) - Method in class com.threerings.servlet.util.Parameters
Returns the value for the parameter on this request as converted by converter or throws NullPointerException if it has no such parameter.
reset() - Method in class com.threerings.util.MethodProfiler
Clears all recorded methods and times.
RunningStats - Class in com.threerings.util
Calculates live values for the mean, variance and standard deviation of a set of samples.
RunningStats() - Constructor for class com.threerings.util.RunningStats
 

S

SECOND - Static variable in class com.threerings.util.TimeUtil
Time unit constant.
setClassLoader(ClassLoader) - Method in class com.threerings.util.MessageManager
Allows a custom classloader to be configured for locating translation resources.
setLocale(Locale) - Method in class com.threerings.util.MessageManager
Sets the locale to the specified locale.
setLocale(Locale, boolean) - Method in class com.threerings.util.MessageManager
Sets the locale to the specified locale.
setPrefix(String) - Method in class com.threerings.util.MessageManager
Sets the appropriate resource prefix for where to find subsequent message bundles.
standardDeviation - Variable in class com.threerings.util.MethodProfiler.Result
Standard deviation from the average.
swap(String) - Method in class com.threerings.util.MethodProfiler
Transition to a new method or segment.

T

taint(Object) - Static method in class com.threerings.util.MessageBundle
Call this to "taint" any string that has been entered by an entity outside the application so that the translation code knows not to attempt to translate this string when doing recursive translations (see MessageBundle.xlate(java.lang.String)).
tcompose(String, Object...) - Static method in class com.threerings.util.MessageBundle
A convenience method for calling MessageBundle.compose(String,Object[]) with an array of arguments that will be automatically tainted (see MessageBundle.taint(java.lang.Object)).
tcompose(String, Object) - Static method in class com.threerings.util.MessageBundle
Required for backwards compatibility.
tcompose(String, Object, Object) - Static method in class com.threerings.util.MessageBundle
Required for backwards compatibility.
tcompose(String, String...) - Static method in class com.threerings.util.MessageBundle
A convenience method for calling MessageBundle.compose(String,String[]) with an array of arguments that will be automatically tainted (see MessageBundle.taint(java.lang.Object)).
TimeUtil - Class in com.threerings.util
Utility for times.
TimeUtil() - Constructor for class com.threerings.util.TimeUtil
 
TO_BOOLEAN - Static variable in class com.threerings.servlet.util.Converters
 
TO_BYTE - Static variable in class com.threerings.servlet.util.Converters
 
TO_FLOAT - Static variable in class com.threerings.servlet.util.Converters
 
TO_INT - Static variable in class com.threerings.servlet.util.Converters
 
TO_LONG - Static variable in class com.threerings.servlet.util.Converters
 
toString() - Method in class com.threerings.servlet.util.FlashVarBuilder
 
toString() - Method in class com.threerings.servlet.util.QueryBuilder
Returns the query in this builder.
toString() - Method in class com.threerings.util.MessageBundle
 
toString() - Method in class com.threerings.util.MethodProfiler.Result
 
toUrl(StringBuilder) - Method in class com.threerings.servlet.util.QueryBuilder
Appends the query in this builder to the given StringBuilder with a question mark.
toUrl(String) - Method in class com.threerings.servlet.util.QueryBuilder
Appends the query in this builder to the given String with a question mark.

V

values() - Method in class com.threerings.servlet.util.Parameters
Returns a Collection of all the parameter values for this request.

X

xlate(String) - Method in class com.threerings.util.MessageBundle
Obtains the translation for the specified compound message key.

A C D E F G H I M N P Q R S T V X

Copyright © 2012. All Rights Reserved.