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

A

AbstractBean - Class in net.pterodactylus.util.beans
Abstract bean super class that contains property change listener management.
AbstractBean() - Constructor for class net.pterodactylus.util.beans.AbstractBean
 
AbstractCache<K,V> - Class in net.pterodactylus.util.cache
Abstract base implementation of a Cache.
AbstractCache(ValueRetriever<K, V>) - Constructor for class net.pterodactylus.util.cache.AbstractCache
Creates a new abstract cache.
AbstractCommand - Class in net.pterodactylus.util.telnet
Abstract base implementation of a Command.
AbstractCommand(String, String) - Constructor for class net.pterodactylus.util.telnet.AbstractCommand
Creates a new command with the given name and description.
AbstractCommand(String, String, String...) - Constructor for class net.pterodactylus.util.telnet.AbstractCommand
Creates a new command with the given name, brief description and detailed description.
AbstractCommand(String, String, List<String>) - Constructor for class net.pterodactylus.util.telnet.AbstractCommand
Creates a new command with the given name, brief description and detailed description.
AbstractDatabase - Class in net.pterodactylus.util.database
Abstract implementation of a Database.
AbstractDatabase() - Constructor for class net.pterodactylus.util.database.AbstractDatabase
 
AbstractItemCache<T> - Class in net.pterodactylus.util.cache
Base implementation of an ItemCache.
AbstractItemCache(ItemValueRetriever<T>) - Constructor for class net.pterodactylus.util.cache.AbstractItemCache
Creates a new abstract item cache.
AbstractListenerManager<S,L extends EventListener> - Class in net.pterodactylus.util.event
Abstract implementation of a listener support class.
AbstractListenerManager(S) - Constructor for class net.pterodactylus.util.event.AbstractListenerManager
Creates a new listener support that emits events from the given source.
AbstractListenerManager(S, Executor) - Constructor for class net.pterodactylus.util.event.AbstractListenerManager
Creates a new listener support that emits events from the given source.
AbstractNotification - Class in net.pterodactylus.util.notify
Abstract base implementation of a Notification that takes care of everything but creating the text of the notification, so only Notification.render(java.io.Writer) needs to be override by subclasses.
AbstractNotification() - Constructor for class net.pterodactylus.util.notify.AbstractNotification
Creates a new notification with a random ID, the current time as creation and last udpate time and is dismissable by the user.
AbstractNotification(String) - Constructor for class net.pterodactylus.util.notify.AbstractNotification
Creates a new notification with the current time as creation and last udpate time and is dismissable by the user.
AbstractNotification(String, long) - Constructor for class net.pterodactylus.util.notify.AbstractNotification
Creates a new notification with the given time as creation and last update time and is dismissable by the user.
AbstractNotification(String, long, long) - Constructor for class net.pterodactylus.util.notify.AbstractNotification
Creates a new notification with the given creation and last update time and is dismissable by the user.
AbstractNotification(String, long, long, boolean) - Constructor for class net.pterodactylus.util.notify.AbstractNotification
Creates a new notification.
AbstractPart - Class in net.pterodactylus.util.template
Abstract implementation of a Part that adds a line number and column number which can be used for TemplateExceptions.
AbstractPart(int, int) - Constructor for class net.pterodactylus.util.template.AbstractPart
Creates a new abstract part that was started by a tag at the given location in the TemplateParser’s input.
AbstractService - Class in net.pterodactylus.util.service
 
AbstractService() - Constructor for class net.pterodactylus.util.service.AbstractService
Constructs a new abstract service with an anonymous name.
AbstractService(String) - Constructor for class net.pterodactylus.util.service.AbstractService
Constructs a new abstract service with the given name.
AbstractService(String, ThreadFactory) - Constructor for class net.pterodactylus.util.service.AbstractService
Constructs a new abstract service with the given name.
AbstractService(String, boolean) - Constructor for class net.pterodactylus.util.service.AbstractService
Constructs a new abstract service with the given name.
AbstractService(String, boolean, ThreadFactory) - Constructor for class net.pterodactylus.util.service.AbstractService
Constructs a new abstract service with the given name.
AbstractValue<T> - Class in net.pterodactylus.util.config
An abstract implementation of a Value.
AbstractValue(Configuration, String) - Constructor for class net.pterodactylus.util.config.AbstractValue
Creates a new value that reads its values from the given configuration backend.
Accessor - Interface in net.pterodactylus.util.template
An accessor can access member variables of objects of a given type.
add(T) - Method in class net.pterodactylus.util.collection.Container
Creates and returns a new container that contains all elements of this container and the given element, which is appended at the end.
add(int, T) - Method in class net.pterodactylus.util.collection.Container
Creates and returns a new container that contains the elements of this container with the given element inserted at the given index.
add(T) - Method in class net.pterodactylus.util.collection.ListBuilder
Adds the given element to the list.
add(T) - Method in class net.pterodactylus.util.collection.SetBuilder
Adds the given element to the set.
add(WhereClause) - Method in class net.pterodactylus.util.database.AndWhereClause
Adds the given WHERE clause.
add(WhereClause) - Method in class net.pterodactylus.util.database.OrWhereClause
Adds the given WHERE clause.
add(T) - Method in class net.pterodactylus.util.storage.Storage
Adds a storable to this storage.
add(E) - Method in class net.pterodactylus.util.swing.ListModelList
add(int, E) - Method in class net.pterodactylus.util.swing.ListModelList
add(MutableTreeNode) - Method in class net.pterodactylus.util.swing.SortableTreeNode
Adds the given node to this node as a child.
add(int, T) - Method in class net.pterodactylus.util.swing.SortedListModel
add(T) - Method in class net.pterodactylus.util.swing.SortedListModel
addAccessor(Class<?>, Accessor) - Method in class net.pterodactylus.util.template.TemplateContext
Adds an accessor to this context.
addAccessor(Class<?>, Accessor) - Method in class net.pterodactylus.util.template.TemplateContextFactory
Adds an accessor that will be added to all created templates.
addAll(Collection<? extends T>) - Method in class net.pterodactylus.util.collection.ListBuilder
Adds all elements from the given collection to the list.
addAll(Collection<? extends T>) - Method in class net.pterodactylus.util.collection.SetBuilder
Adds all elements from the given collection to the set.
addAll(Collection<? extends E>) - Method in class net.pterodactylus.util.swing.ListModelList
addAll(int, Collection<? extends E>) - Method in class net.pterodactylus.util.swing.ListModelList
addAll(Collection<? extends T>) - Method in class net.pterodactylus.util.swing.SortedListModel
addAll(int, Collection<? extends T>) - Method in class net.pterodactylus.util.swing.SortedListModel
addChild(E) - Method in interface net.pterodactylus.util.data.Node
Adds an element as a child to this node and returns the created node.
addCommand(Command) - Method in class net.pterodactylus.util.telnet.ControlConnection
Adds the given command to this control.
addCommand(Command) - Method in class net.pterodactylus.util.telnet.TelnetControl
Adds the given command to this control.
addComparator(Class<T>, Comparator<? super T>) - Method in class net.pterodactylus.util.template.CollectionSortFilter
Adds a comparator to use when an object of the given class is found as first item in a collection’s iterator.
addField(Field...) - Method in class net.pterodactylus.util.database.Query
Adds one or more fields to this query.
addFilter(String, Filter) - Method in class net.pterodactylus.util.template.TemplateContext
Adds a filter to this context.
addFilter(String, Filter) - Method in class net.pterodactylus.util.template.TemplateContextFactory
Adds the given filter to all created templates.
addHeader(String, String) - Method in class net.pterodactylus.util.web.Response
Adds a header field with the given name and value to this response.
addI18nable(I18nable) - Method in class net.pterodactylus.util.i18n.I18n
Adds an i18n listener that is notified when the language is changed or additional sources add added or removed.
addI18nable(I18nable, I18n.RemovalReference) - Method in class net.pterodactylus.util.i18n.I18n
Adds an i18n listener that is notified when the language is changed or additional sources add added or removed.
addJoin(Join...) - Method in class net.pterodactylus.util.database.Query
Adds one or more joins to this query.
addLine(String) - Method in class net.pterodactylus.util.telnet.Command.Reply
Adds a line to the reply.
addListDataListener(ListDataListener) - Method in class net.pterodactylus.util.swing.ListModelList
addListener(L) - Method in class net.pterodactylus.util.event.AbstractListenerManager
Adds the given listener to the list of reigstered listeners.
addLoggingListener(LoggingListener) - Static method in class net.pterodactylus.util.logging.Logging
Adds a listener to the log handler.
addNotification(Notification) - Method in class net.pterodactylus.util.notify.NotificationManager
Adds the given notification.
addNotificationListener(NotificationListener) - Method in class net.pterodactylus.util.notify.AbstractNotification
Adds the given notification listener.
addNotificationListener(NotificationListener) - Method in interface net.pterodactylus.util.notify.Notification
Adds the given notification listener.
addOrderField(OrderField...) - Method in class net.pterodactylus.util.database.Query
Adds one or more order fields to this query.
addOutputLine(String) - Method in class net.pterodactylus.util.telnet.ControlConnection
Prints the given line to the output stream.
addOutputLines(String...) - Method in class net.pterodactylus.util.telnet.ControlConnection
Prints the given lines to the output stream.
addPlugin(String, Plugin) - Method in class net.pterodactylus.util.template.TemplateContext
Adds a plugin to this context.
addPlugin(String, Plugin) - Method in class net.pterodactylus.util.template.TemplateContextFactory
Adds the given plugin to all created templates.
addPropertyChangeListener(PropertyChangeListener) - Method in class net.pterodactylus.util.beans.AbstractBean
Adds a property change listener.
addProvider(TemplateProvider) - Method in class net.pterodactylus.util.template.TemplateContext
addProvider(TemplateProvider) - Method in class net.pterodactylus.util.template.TemplateContextFactory
Sets the template provider that is set on all created templates.
addServiceListener(ServiceListener) - Method in class net.pterodactylus.util.service.AbstractService
Adds the given service listener to the list of service listeners that will be notified on service events.
addServiceListener(ServiceListener) - Method in interface net.pterodactylus.util.service.Service
Adds the given service listener to the list of service listeners that will be notified on service events.
addSideComponent(Component) - Method in class net.pterodactylus.util.swing.StatusBar
Adds a side component to the right side of the status bar, pushing all previously added side components to the left.
addSource(I18n.Source) - Method in class net.pterodactylus.util.i18n.I18n
Adds an additional l10n source.
addTemplate(String, Template) - Method in class net.pterodactylus.util.template.DefaultTheme
Adds a template with the given name.
addTemplateObject(String, Object) - Method in class net.pterodactylus.util.template.TemplateContextFactory
Adds an object that will be stored in all created templates.
addTemplateProvider(TemplateProvider) - Method in class net.pterodactylus.util.template.TemplateContext
Adds a template provider to this context.
addValidator(Validator<T>) - Method in class net.pterodactylus.util.validation.ValidatorContainer
Adds a validator to this validator container.
addValue(String) - Method in class net.pterodactylus.util.web.Header
Adds the given value to this header field.
addValueField(ValueField...) - Method in class net.pterodactylus.util.database.Query
Adds one or more value fields to this query.
addWhereClause(WhereClause...) - Method in class net.pterodactylus.util.database.Query
Adds one or more WHERE clauses to this query.
Allocation - Class in net.pterodactylus.util.storage
An allocation is stored in the allocation table of a Storage.
Allocation(long, int, int) - Constructor for class net.pterodactylus.util.storage.Allocation
Creates a new allocation table entry.
Allocation.AllocationFactory - Class in net.pterodactylus.util.storage
Factory implementation that can create Allocation objects.
AllocationFactory() - Constructor for class net.pterodactylus.util.storage.Allocation.AllocationFactory
 
AndValidator<T> - Class in net.pterodactylus.util.validation
Validator implementation that requires a number of other Validators to validate an object.
AndValidator() - Constructor for class net.pterodactylus.util.validation.AndValidator
Creates a new “AND” validator.
AndValidator(Validator<T>...) - Constructor for class net.pterodactylus.util.validation.AndValidator
Creates a new “AND” validator.
AndWhereClause - Class in net.pterodactylus.util.database
WhereClause implementation that performs an AND conjunction of an arbitrary amount of where clauses.
AndWhereClause() - Constructor for class net.pterodactylus.util.database.AndWhereClause
Creates a new AND where clause.
AndWhereClause(WhereClause...) - Constructor for class net.pterodactylus.util.database.AndWhereClause
Creates a new AND where clause.
AndWhereClause(Collection<WhereClause>) - Constructor for class net.pterodactylus.util.database.AndWhereClause
Creates a new AND where clause.
append(String) - Method in class net.pterodactylus.util.xml.SimpleXML
Appends a new XML node with the specified name and returns the new node.
append(String, String) - Method in class net.pterodactylus.util.xml.SimpleXML
Appends a new XML node with the specified name and value and returns the new node.
append(SimpleXML) - Method in class net.pterodactylus.util.xml.SimpleXML
Appends the node with all its child nodes to this node and returns the child node.
ArrayMap<K,V> - Class in net.pterodactylus.util.collection
An ArrayMap is a Map implementation that is backed by arrays.
ArrayMap() - Constructor for class net.pterodactylus.util.collection.ArrayMap
Creates a new array map with a default size of 10.
ArrayMap(int) - Constructor for class net.pterodactylus.util.collection.ArrayMap
Creates a new array map with the given default size.
Arrays - Class in net.pterodactylus.util.collection
Helper functions for working with arrays.
Arrays() - Constructor for class net.pterodactylus.util.collection.Arrays
 
asList() - Method in class net.pterodactylus.util.collection.Container
Returns the elements of this contains as a List.
attribute - Variable in class net.pterodactylus.util.config.AbstractValue
The name of the attribute this is the value for.
AttributeNotFoundException - Exception in net.pterodactylus.util.config
Exception that will be thrown when a non-existing attribute is requested.
AttributeNotFoundException() - Constructor for exception net.pterodactylus.util.config.AttributeNotFoundException
Constructs a new exception.
AttributeNotFoundException(String) - Constructor for exception net.pterodactylus.util.config.AttributeNotFoundException
Constructs a new exception with the specified message.
available() - Method in class net.pterodactylus.util.io.LimitedInputStream
 

B

BAD_REQUEST - Static variable in class net.pterodactylus.util.telnet.Command.Reply
The “bad request” status.
BasicWhitespaceRemover - Class in net.pterodactylus.util.template
Removes basic whitespace characters from the beginning of a String.
BasicWhitespaceRemover() - Constructor for class net.pterodactylus.util.template.BasicWhitespaceRemover
 
begin() - Static method in class net.pterodactylus.util.validation.Validation
Returns a new Validation object.
Bits - Class in net.pterodactylus.util.number
Utility class for bit manipulations.
Bits() - Constructor for class net.pterodactylus.util.number.Bits
 
BitShiftedInputStream - Class in net.pterodactylus.util.io
An InputStream that can read values with a bit size of other than 8.
BitShiftedInputStream(InputStream, int) - Constructor for class net.pterodactylus.util.io.BitShiftedInputStream
Creates a new bit-shifted input stream wrapped around the specified input stream with the specified value size.
BitShiftedOutputStream - Class in net.pterodactylus.util.io
A bit-shifted output stream can write an (almost) arbitrary amount of bits for a value given to BitShiftedOutputStream.write(int).
BitShiftedOutputStream(OutputStream, int) - Constructor for class net.pterodactylus.util.io.BitShiftedOutputStream
Creates a new bit-shifted output stream that writes valueSize bits per value.
BooleanParameter(Boolean) - Constructor for class net.pterodactylus.util.database.Parameter.BooleanParameter
Creates a new parameter.
BooleanValue - Class in net.pterodactylus.util.config
A wrapper around a boolean value.
BooleanValue(Configuration, String) - Constructor for class net.pterodactylus.util.config.BooleanValue
Creates a new boolean value that updates its value to the given attribute from the given configuration.

C

Cache<K,V> - Interface in net.pterodactylus.util.cache
Interface for caches with different strategies.
CacheException - Exception in net.pterodactylus.util.cache
Exception that signals an error in cache management.
CacheException() - Constructor for exception net.pterodactylus.util.cache.CacheException
Creates a new cache exception.
CacheException(String) - Constructor for exception net.pterodactylus.util.cache.CacheException
Creates a new cache exception.
CacheException(Throwable) - Constructor for exception net.pterodactylus.util.cache.CacheException
Creates a new cache exception.
CacheException(String, Throwable) - Constructor for exception net.pterodactylus.util.cache.CacheException
Creates a new cache exception.
CacheItem<V> - Interface in net.pterodactylus.util.cache
Wrapper interface for cached items.
CachingConfigurationBackend - Class in net.pterodactylus.util.config
Configuration backend proxy that caches the attribute values it retrieves.
CachingConfigurationBackend(ConfigurationBackend) - Constructor for class net.pterodactylus.util.config.CachingConfigurationBackend
Creates a new caching configuration backend that works as a proxy for the specified configuration backend and caches all values it retrieves.
center(Window) - Static method in class net.pterodactylus.util.swing.SwingUtils
Centers the given window on the primary screen.
center(Window, Window) - Static method in class net.pterodactylus.util.swing.SwingUtils
Centers the given window over its owner window.
ChainingTemplateProvider - Class in net.pterodactylus.util.template
TemplateProvider that delegates requests for a Template to several other TemplateProviders.
ChainingTemplateProvider(TemplateProvider...) - Constructor for class net.pterodactylus.util.template.ChainingTemplateProvider
Creates a new chaining template provider.
changeExecutionTime(Object, long) - Method in class net.pterodactylus.util.thread.Ticker
Changes the execution time of the thread identified by the given object.
check() - Method in class net.pterodactylus.util.validation.Validation
Checks if one of the previous checks failed and throws an IllegalArgumentException if a previous check did fail.
children() - Method in class net.pterodactylus.util.swing.SortableTreeNode
Classes - Class in net.pterodactylus.util.object
Helper class that simplifies handling of Classes.
Classes() - Constructor for class net.pterodactylus.util.object.Classes
 
ClassPathTemplateProvider - Class in net.pterodactylus.util.template
Template provider implementation that uses Class.getResourceAsStream(String) to load templates for inclusion.
ClassPathTemplateProvider(Class<?>) - Constructor for class net.pterodactylus.util.template.ClassPathTemplateProvider
Creates a new class path template provider.
ClassPathTemplateProvider(Class<?>, String) - Constructor for class net.pterodactylus.util.template.ClassPathTemplateProvider
Creates a new class path template provider.
clear() - Method in interface net.pterodactylus.util.cache.Cache
Removes all cached values.
clear() - Method in interface net.pterodactylus.util.cache.ItemCache
Clears the cache.
clear() - Method in class net.pterodactylus.util.cache.MemoryCache
 
clear() - Method in class net.pterodactylus.util.cache.MemoryItemCache
Clears the cache.
clear() - Method in class net.pterodactylus.util.collection.ArrayMap
clear() - Method in class net.pterodactylus.util.collection.TimedMap
clear() - Method in class net.pterodactylus.util.config.CachingConfigurationBackend
Clears the current cache, causing the all further lookups to be repeated.
clear() - Method in class net.pterodactylus.util.swing.ListModelList
clear() - Method in class net.pterodactylus.util.swing.SortedListModel
clear() - Method in class net.pterodactylus.util.swing.StatusBar
Clears the status bar.
clearDirtyFlag() - Method in class net.pterodactylus.util.database.DataObject
Clears the dirty flag.
close() - Method in class net.pterodactylus.util.io.BitShiftedOutputStream
close(ResultSet) - Static method in class net.pterodactylus.util.io.Closer
Closes the given result set.
close(Statement) - Static method in class net.pterodactylus.util.io.Closer
Closes the given statement.
close(Connection) - Static method in class net.pterodactylus.util.io.Closer
Closes the given connection.
close(ServerSocket) - Static method in class net.pterodactylus.util.io.Closer
Closes the given server socket.
close(Socket) - Static method in class net.pterodactylus.util.io.Closer
Closes the given socket.
close(InputStream) - Static method in class net.pterodactylus.util.io.Closer
Closes the given input stream.
close(OutputStream) - Static method in class net.pterodactylus.util.io.Closer
Closes the given output stream.
close(Reader) - Static method in class net.pterodactylus.util.io.Closer
Closes the given reader.
close(Writer) - Static method in class net.pterodactylus.util.io.Closer
Closes the given writer.
close(JarFile) - Static method in class net.pterodactylus.util.io.Closer
Closes the given jar file.
close(Closeable) - Static method in class net.pterodactylus.util.io.Closer
Closes the given Closeable, Closer.flush(Object)ing it first.
close(Object) - Static method in class net.pterodactylus.util.io.Closer
Tries to call the close() method on the given object.
close() - Method in class net.pterodactylus.util.io.TeeOutputStream
An effort is made to close all output streams.
close() - Method in class net.pterodactylus.util.io.TemporaryInputStream
close() - Method in class net.pterodactylus.util.storage.Storage
Closer - Class in net.pterodactylus.util.io
Helper class that can close all kinds of resources without throwing exception so that clean-up code can be written with less code.
Closer() - Constructor for class net.pterodactylus.util.io.Closer
 
closest(Class<?>, Collection<? extends Class<?>>) - Static method in class net.pterodactylus.util.object.Classes
Returns the class from classes that is closest to the given target class.
collection() - Method in class net.pterodactylus.util.collection.IterableWrapper
Returns all elements contained in the wrapped iterable as a new Collection.
CollectionSortFilter - Class in net.pterodactylus.util.template
Filter that can sort a Collection or Map.
CollectionSortFilter() - Constructor for class net.pterodactylus.util.template.CollectionSortFilter
 
ComboBoxModelList<E> - Class in net.pterodactylus.util.swing
Implementation of a List that doubles as a ComboBoxModel, e.g. for use with a JComboBox.
ComboBoxModelList(List<E>) - Constructor for class net.pterodactylus.util.swing.ComboBoxModelList
Creates a new combo box model list that wraps the given list.
Command - Interface in net.pterodactylus.util.telnet
Basic structure of a command that can be sent to a TelnetControl.
Command.Reply - Class in net.pterodactylus.util.telnet
A reply to a Command.
CommandLine - Class in net.pterodactylus.util.cmdline
Command-line parser.
CommandLine(String[], Collection<Option>) - Constructor for class net.pterodactylus.util.cmdline.CommandLine
Creates a new command line and parses the given command-line arguments according to the given options.
CommandLine(String[], Option...) - Constructor for class net.pterodactylus.util.cmdline.CommandLine
Creates a new command line and parses the given command-line arguments according to the given options.
CommandLineException - Exception in net.pterodactylus.util.cmdline
Exception that signals an error in command-line argument parsing.
CommandLineException() - Constructor for exception net.pterodactylus.util.cmdline.CommandLineException
Creates a new command-line exception.
CommandLineException(String) - Constructor for exception net.pterodactylus.util.cmdline.CommandLineException
Creates a new command-line exception with the given message.
CommandLineException(Throwable) - Constructor for exception net.pterodactylus.util.cmdline.CommandLineException
Creates a new command-line exception with the given cause.
CommandLineException(String, Throwable) - Constructor for exception net.pterodactylus.util.cmdline.CommandLineException
Creates a new command-line exception with the given message and cause.
compact() - Method in class net.pterodactylus.util.storage.Storage
Compacts the directory.
ComparablePair<S extends Comparable<S>,T extends Comparable<T>> - Class in net.pterodactylus.util.collection
Container for two Comparable objects that are tied together.
ComparablePair(S, T) - Constructor for class net.pterodactylus.util.collection.ComparablePair
Creates a new pair consisting of the two values.
compare(T, T) - Method in class net.pterodactylus.util.collection.ReverseComparator
 
compareTo(ComparablePair<S, T>) - Method in class net.pterodactylus.util.collection.ComparablePair
 
compareTo(State) - Method in class net.pterodactylus.util.service.State
Compares this state to the given state.
compareTo(Version) - Method in class net.pterodactylus.util.version.Version
configuration - Variable in class net.pterodactylus.util.config.AbstractValue
The configuration that created this value.
Configuration - Class in net.pterodactylus.util.config
A configuration contains all necessary methods to read integral data types from a ConfigurationBackend.
Configuration(ConfigurationBackend) - Constructor for class net.pterodactylus.util.config.Configuration
Creates a new configuration that operates on the given backend.
ConfigurationBackend - Interface in net.pterodactylus.util.config
Interface for backends that can read and (optionally) write values at given attribute names.
ConfigurationException - Exception in net.pterodactylus.util.config
Parent exception for all exceptions that can occur during configuration file parsing.
ConfigurationException() - Constructor for exception net.pterodactylus.util.config.ConfigurationException
Constructs a new configuration exception.
ConfigurationException(String) - Constructor for exception net.pterodactylus.util.config.ConfigurationException
Constructs a new configuration exception with the specified message
ConfigurationException(String, Throwable) - Constructor for exception net.pterodactylus.util.config.ConfigurationException
Constructs a new configuration exception with the specified message and cause.
ConfigurationException(Throwable) - Constructor for exception net.pterodactylus.util.config.ConfigurationException
Constructs a new configuration exception with the specified cause.
consume() - Method in class net.pterodactylus.util.io.LimitedInputStream
Consumes the input stream, i.e. read all bytes until the limit is reached.
Container<T> - Class in net.pterodactylus.util.collection
A container stores an arbitrary amounts of elements, allowing easy filtering, mapping, and processing of the elements.
Container() - Constructor for class net.pterodactylus.util.collection.Container
Creates an empty container.
Container(T) - Constructor for class net.pterodactylus.util.collection.Container
Creates a container that stores the given element.
Container(T[]) - Constructor for class net.pterodactylus.util.collection.Container
Creates a new container and stores the given elements.
Container(Collection<? extends T>) - Constructor for class net.pterodactylus.util.collection.Container
Creates a new container from the given collection.
Container(Iterable<? extends T>) - Constructor for class net.pterodactylus.util.collection.Container
Creates a new container from the given iterable.
Container(Iterator<? extends T>) - Constructor for class net.pterodactylus.util.collection.Container
Creates a new container from the given iterator.
contains(K) - Method in interface net.pterodactylus.util.cache.Cache
Checks whether this cache contains a value for the given key.
contains(K) - Method in class net.pterodactylus.util.cache.MemoryCache
 
contains(T) - Method in class net.pterodactylus.util.collection.Container
Returns whether the given element is stored in this container.
contains(Object) - Method in class net.pterodactylus.util.swing.ListModelList
contains(Object) - Method in class net.pterodactylus.util.swing.SortedListModel
containsAll(Collection<?>) - Method in class net.pterodactylus.util.swing.ListModelList
containsAll(Collection<?>) - Method in class net.pterodactylus.util.swing.SortedListModel
ContainsFilter - Class in net.pterodactylus.util.template
Filter implementation that returns a boolean, depending on whether the object being filtered is contained in a Collection that is given as parameter to this filter.
ContainsFilter() - Constructor for class net.pterodactylus.util.template.ContainsFilter
 
containsKey(Object) - Method in class net.pterodactylus.util.collection.ArrayMap
containsKey(Object) - Method in class net.pterodactylus.util.collection.TimedMap
containsValue(Object) - Method in class net.pterodactylus.util.collection.ArrayMap
containsValue(Object) - Method in class net.pterodactylus.util.collection.TimedMap
ControlConnection - Class in net.pterodactylus.util.telnet
Handles a single client connection.
ControlConnection(InputStream, OutputStream) - Constructor for class net.pterodactylus.util.telnet.ControlConnection
Creates a new connection handler for a client on the given socket.
convert(I) - Method in interface net.pterodactylus.util.collection.Converter
Deprecated.
Converts the given input object into another object.
Converter<I,O> - Interface in net.pterodactylus.util.collection
Deprecated.
Use Mapper instead
Converters - Class in net.pterodactylus.util.collection
Deprecated.
Use Mappers instead
Converters() - Constructor for class net.pterodactylus.util.collection.Converters
Deprecated.
 
convertList(List<I>, Converter<I, O>) - Static method in class net.pterodactylus.util.collection.Converters
Deprecated.
Converts all objects in the given list and returns a list that contains the converted objects in the same order as the input objects in the original list.
convertSet(Set<I>, Converter<I, O>) - Static method in class net.pterodactylus.util.collection.Converters
Deprecated.
Converts all objects in the given list and returns a list that contains the converted objects.
copy(InputStream, OutputStream, StreamCopier.ProgressListener, long) - Static method in class net.pterodactylus.util.io.StreamCopier
Copies length bytes from the source input stream to the destination output stream.
copy(InputStream, OutputStream, long) - Static method in class net.pterodactylus.util.io.StreamCopier
Copies length bytes from the source input stream to the destination output stream.
copy(InputStream, OutputStream, StreamCopier.ProgressListener) - Static method in class net.pterodactylus.util.io.StreamCopier
Copies as many bytes as possible (i.e. until InputStream.read() returns -1) from the source input stream to the destination output stream.
copy(InputStream, OutputStream) - Static method in class net.pterodactylus.util.io.StreamCopier
Copies as many bytes as possible (i.e. until InputStream.read() returns -1) from the source input stream to the destination output stream.
CountField - Class in net.pterodactylus.util.database
Convenience Field implementation that creates a field that returns the count of all rows.
CountField() - Constructor for class net.pterodactylus.util.database.CountField
Creates a new count field.
create(int) - Static method in class net.pterodactylus.util.collection.Range
Creates a new range from 0 (inclusive) to the given upper bound (exclusive).
create(int, int) - Static method in class net.pterodactylus.util.collection.Range
Creates a new range from the given lower bound (inclusive) to the given upper bound (exclusive).
create(long) - Static method in class net.pterodactylus.util.collection.Range
Creates a new range from 0 (inclusive) to the given upper bound (exclusive).
create(long, long) - Static method in class net.pterodactylus.util.collection.Range
Creates a new range from the given lower bound (inclusive) to the given upper bound (exclusive).
create(Database, DataObjectFactory<D>, ValueField...) - Static method in class net.pterodactylus.util.database.DataObject
Creates a new data object with the given value fields.
CREATED_TIME_SORTER - Static variable in interface net.pterodactylus.util.notify.Notification
Sorts notifications by creation time, oldest first.
createDocument() - Static method in class net.pterodactylus.util.xml.XML
Creates a new XML document.
createHeader(String, String) - Static method in class net.pterodactylus.util.web.Response
Creates a header map containing a single header.
createObject(ResultSet) - Method in class net.pterodactylus.util.database.MapCreator
 
createObject(ResultSet) - Method in interface net.pterodactylus.util.database.ObjectCreator
Creates a new object from the current row in the given result set.
createObject(ResultSet) - Method in class net.pterodactylus.util.database.ObjectCreator.IntegerCreator
 
createObject(ResultSet) - Method in class net.pterodactylus.util.database.ObjectCreator.StringCreator
 
createObject(ResultSet) - Method in class net.pterodactylus.util.database.PairCreator
 
createStatement(Connection) - Method in class net.pterodactylus.util.database.Query
Creates an SQL statement from the given connection and prepares it for execution.
createTemplateContext() - Method in class net.pterodactylus.util.template.TemplateContextFactory
Creates a new template context that contains the accessors, filters, plugins, template providers, and objects set in this factory.
crop(int) - Method in class net.pterodactylus.util.collection.Container
Returns a container that contains only the element at the given index.
crop(int, int) - Method in class net.pterodactylus.util.collection.Container
Returns a container that contains a part of this container, starting at the index start (inclusive) and ending at the index end (exclusive).
currentBitPosition - Variable in class net.pterodactylus.util.io.BitShiftedInputStream
The current bit position in the underlying input stream.
CurrentThreadExecutor - Class in net.pterodactylus.util.thread
An Executor that executes Runnables in the current thread.
CurrentThreadExecutor() - Constructor for class net.pterodactylus.util.thread.CurrentThreadExecutor
 
currentValue - Variable in class net.pterodactylus.util.io.BitShiftedInputStream
The current value from the underlying input stream.

D

Database - Interface in net.pterodactylus.util.database
Interface for the database abstraction.
DatabaseException - Exception in net.pterodactylus.util.database
Exception that signals a database error.
DatabaseException() - Constructor for exception net.pterodactylus.util.database.DatabaseException
Creates a new database exception.
DatabaseException(String) - Constructor for exception net.pterodactylus.util.database.DatabaseException
Creates a new database exception.
DatabaseException(Throwable) - Constructor for exception net.pterodactylus.util.database.DatabaseException
Creates a new database exception.
DatabaseException(String, Throwable) - Constructor for exception net.pterodactylus.util.database.DatabaseException
Creates a new database exception.
DataObject<D extends DataObject<D>> - Class in net.pterodactylus.util.database
A data object represents a data row from a database table.
DataObject(DataObjectFactory<D>, long) - Constructor for class net.pterodactylus.util.database.DataObject
Creates a new data object.
DataObjectFactory<D extends DataObject<D>> - Interface in net.pterodactylus.util.database
The data object factory knows details about the specifics of how a DataObject is persisted to the database.
DateFilter - Class in net.pterodactylus.util.template
Filter implementation that formats a date.
DateFilter() - Constructor for class net.pterodactylus.util.template.DateFilter
 
decodeBit(int, int) - Static method in class net.pterodactylus.util.number.Bits
Decodes a single bit from the given value.
decodeBits(int, int, int) - Static method in class net.pterodactylus.util.number.Bits
Decodes numberOfBits bits from the specified start index.
Default - Class in net.pterodactylus.util.object
Helper class that can return different values for an object if it matches certain criteria.
Default() - Constructor for class net.pterodactylus.util.object.Default
 
DEFAULT_CONTENT_TYPE - Static variable in class net.pterodactylus.util.io.MimeTypes
The default MIME type for unknown extensions.
DefaultCacheItem<V> - Class in net.pterodactylus.util.cache
Default implementation of a CacheItem that simply stores a value and does nothing when CacheItem.remove() is called.
DefaultCacheItem(V) - Constructor for class net.pterodactylus.util.cache.DefaultCacheItem
Creates a new cache item.
DefaultFilter - Class in net.pterodactylus.util.template
Filter implementation that can return fixed values when the input value is null.
DefaultFilter() - Constructor for class net.pterodactylus.util.template.DefaultFilter
 
DefaultTheme - Class in net.pterodactylus.util.template
Default Theme implementation that uses a simple synchronized map to store themes.
DefaultTheme() - Constructor for class net.pterodactylus.util.template.DefaultTheme
 
delete(Database) - Method in class net.pterodactylus.util.database.DataObject
Deletes this data object from the database.
deleteById(Database, DataObjectFactory<D>, long) - Static method in class net.pterodactylus.util.database.DataObject
Deletes the data object with the given ID from the database.
deleteByWhereClause(Database, DataObjectFactory<D>, WhereClause) - Static method in class net.pterodactylus.util.database.DataObject
Deletes all objects from the database that match the given WHERE clause.
DeletePlugin - Class in net.pterodactylus.util.template
Plugin that will remove a value from the current TemplateContext by setting it to null.
DeletePlugin() - Constructor for class net.pterodactylus.util.template.DeletePlugin
 
deregisterEvent(Object) - Method in class net.pterodactylus.util.thread.Ticker
Removes the event identified by the given identifier.
destroy() - Method in class net.pterodactylus.util.service.AbstractService
Destroys this service, freeing all used resources.
destroy() - Method in interface net.pterodactylus.util.service.Service
Destroys the service and frees all used resources.
Digits - Class in net.pterodactylus.util.number
Utility class for decimal number strings.
Digits() - Constructor for class net.pterodactylus.util.number.Digits
 
dismiss() - Method in class net.pterodactylus.util.notify.AbstractNotification
Dismisses this notification.
dismiss() - Method in interface net.pterodactylus.util.notify.Notification
Dismisses this notification.
DOMUtil - Class in net.pterodactylus.util.xml
Contains various helper methods that let you more easily work with org.w3c.dom objects.
DOMUtil() - Constructor for class net.pterodactylus.util.xml.DOMUtil
 
DoubleRangeValidator - Class in net.pterodactylus.util.validation
Validator that validates that a Double is within a specified range.
DoubleRangeValidator(double, boolean, double, boolean) - Constructor for class net.pterodactylus.util.validation.DoubleRangeValidator
Creates a new double range validator.
DoubleValue - Class in net.pterodactylus.util.config
A wrapper around a double value.
DoubleValue(Configuration, String) - Constructor for class net.pterodactylus.util.config.DoubleValue
Creates a new double value that updates its value to the given attribute from the given configuration.
DumpingThread - Class in net.pterodactylus.util.thread
Wrapper around Thread that catches throws exceptions and dumps them to the logfile.
DumpingThread(Runnable) - Constructor for class net.pterodactylus.util.thread.DumpingThread
Creates a new dumping thread that executes the given Runnable.
DumpingThread(Runnable, String) - Constructor for class net.pterodactylus.util.thread.DumpingThread
Creates a new dumping thread that executes the given Runnable in a thread with the given name.
DumpingThread(Runnable, String, boolean) - Constructor for class net.pterodactylus.util.thread.DumpingThread
Creates a new dumping thread that executes the given Runnable in a thread with the given name.
DumpingThreadFactory - Class in net.pterodactylus.util.thread
ThreadFactory implementation that creates DumpingThreads.
DumpingThreadFactory() - Constructor for class net.pterodactylus.util.thread.DumpingThreadFactory
Creates a new DumpingThread factory.
DumpingThreadFactory(String) - Constructor for class net.pterodactylus.util.thread.DumpingThreadFactory
Creates a new dumping thread factory that uses the given name prefix and a running counter appended to it as names for the created threads.
DumpingThreadFactory(boolean) - Constructor for class net.pterodactylus.util.thread.DumpingThreadFactory
Creates a new DumpingThread factory.
DumpingThreadFactory(String, boolean) - Constructor for class net.pterodactylus.util.thread.DumpingThreadFactory
Creates a new dumping thread factory that uses the given name prefix and a running counter appended to it as names for the created threads.
Duration - Class in net.pterodactylus.util.time
A duration is the length between two events in time.
Duration(long) - Constructor for class net.pterodactylus.util.time.Duration
Creates a new duration with the specified length.

E

emptyIterable() - Static method in class net.pterodactylus.util.collection.IterableWrapper
Creates a new iterable wrapper that returns iterators that do not return any elements.
encodeBits(int, int, int, int) - Static method in class net.pterodactylus.util.number.Bits
Changes numberOfBits bits starting from index bitIndex in octet to the numberOfBits lowest bits from newValue.
ensureType(Object, Class<T>) - Static method in class net.pterodactylus.util.collection.TypeSafe
Verifies that the given object can be assigned to a variable with the given class, returning a type-cast object with the correct type, or null if the object does not have a matching type.
ensureType(Object, Class<T>, T) - Static method in class net.pterodactylus.util.collection.TypeSafe
Verifies that the given object can be assigned to a variable with the given class, returning a type-cast object with the correct type, or the default value if the object does not have a matching type.
entrySet() - Method in class net.pterodactylus.util.collection.ArrayMap
entrySet() - Method in class net.pterodactylus.util.collection.TimedMap
equal(Object, Object) - Static method in class net.pterodactylus.util.collection.ObjectMethods
Checks whether the two objects are equal.
EqualityValidator<T> - Class in net.pterodactylus.util.validation
Validator implementation that requires an object to be equal to another.
EqualityValidator(T) - Constructor for class net.pterodactylus.util.validation.EqualityValidator
Creates a new equality validator.
equals(Object) - Method in class net.pterodactylus.util.collection.Pair
 
equals(Object) - Method in class net.pterodactylus.util.collection.Triplet
 
equals(Object) - Method in class net.pterodactylus.util.database.Field
equals(Object) - Method in class net.pterodactylus.util.notify.AbstractNotification
equals(Object) - Method in class net.pterodactylus.util.swing.SortedListModel
equals(Object) - Method in class net.pterodactylus.util.version.Version
escapeString(String) - Static method in class net.pterodactylus.util.text.SimpleStringEscaper
Escapes the given string.
escapeWord(String) - Static method in class net.pterodactylus.util.text.StringEscaper
Escapes the given word in a way that StringEscaper.parseLine(String) can correctly unescape it.
escapeWords(Collection<String>) - Static method in class net.pterodactylus.util.text.StringEscaper
Escapes all words in the given collection and joins them separated by a space.
execute(List<String>) - Method in interface net.pterodactylus.util.telnet.Command
Executes the command.
execute(List<String>) - Method in class net.pterodactylus.util.telnet.GarbageCollectionCommand
 
execute(List<String>) - Method in class net.pterodactylus.util.telnet.HelpCommand
Executes the command.
execute(List<String>) - Method in class net.pterodactylus.util.telnet.MemoryCommand
 
execute(List<String>) - Method in class net.pterodactylus.util.telnet.QuitCommand
 
execute(List<String>) - Method in class net.pterodactylus.util.telnet.UptimeCommand
 
execute(List<String>) - Method in class net.pterodactylus.util.telnet.VersionCommand
 
execute(TemplateContext, Map<String, String>) - Method in class net.pterodactylus.util.template.DeletePlugin
Executes the plugin.
execute(TemplateContext, Map<String, String>) - Method in class net.pterodactylus.util.template.PaginationPlugin
Executes the plugin.
execute(TemplateContext, Map<String, String>) - Method in interface net.pterodactylus.util.template.Plugin
Executes the plugin.
execute(Runnable) - Method in class net.pterodactylus.util.thread.CurrentThreadExecutor
ExtendedConfigurationBackend - Interface in net.pterodactylus.util.config
The extended configuration backend allows a backend to specify ways to retrieve other types than strings.

F

FACTORY - Static variable in class net.pterodactylus.util.storage.Allocation
Factory to create Allocations from byte[]s.
Factory<T> - Interface in net.pterodactylus.util.storage
Interface for factory classes that can create objects from a byte array.
Field - Class in net.pterodactylus.util.database
A field stores the name of a database column.
Field(String) - Constructor for class net.pterodactylus.util.database.Field
Creates a new field.
FilesystemTemplateProvider - Class in net.pterodactylus.util.template
TemplateProvider implementation that looks for template files in the filesystem, either at a hardcoded location or a location that is taken from the template context parameter to FilesystemTemplateProvider.getTemplate(TemplateContext, String).
FilesystemTemplateProvider(String) - Constructor for class net.pterodactylus.util.template.FilesystemTemplateProvider
Creates a new filesystem template provider that looks for template files at the given source path.
filter(Filter<T>) - Method in class net.pterodactylus.util.collection.Container
Filters the elements of this container through the given filter.
Filter<T> - Interface in net.pterodactylus.util.collection.filter
Interface for a filter that determines whether a certain action can be performed on an object based on its properties.
filter(Filter<? super T>) - Method in class net.pterodactylus.util.collection.IterableWrapper
Creates a new wrapper around the iterable that will have its elements filtered by the given filter.
filter(Filter<? super T>) - Method in class net.pterodactylus.util.collection.IteratorWrapper
Creates a new iterator wrapper that will apply the given filter to all values returned by this wrapper’s iterator.
Filter - Interface in net.pterodactylus.util.template
Filters can be used to transform the contents of a variable into some other representation.
filter(int, int, TemplateContext, Object) - Method in class net.pterodactylus.util.template.TemplateParser.Filters
Filters the given object through all filters.
FilterDefinition(String, Map<String, String>) - Constructor for class net.pterodactylus.util.template.TemplateParser.FilterDefinition
Creates a new filter definition.
filteredCollection(Collection<K>, Filter<? super K>) - Static method in class net.pterodactylus.util.collection.filter.Filters
Returns a collection that contains only the elements from the given collection that match the given filter.
FilteredIterable<T> - Class in net.pterodactylus.util.collection.filter
Wrapper around an Iterable that applies a Filter on the iterator returned by FilteredIterable.iterator().
FilteredIterable(Iterable<T>, Filter<? super T>) - Constructor for class net.pterodactylus.util.collection.filter.FilteredIterable
Creates a new iterable filter.
FilteredIterator<T> - Class in net.pterodactylus.util.collection.filter
Wrapper around an Iterator that applies a Filter on the wrapper iterator, suppressing items that do not match the filter.
FilteredIterator(Iterator<T>, Filter<? super T>) - Constructor for class net.pterodactylus.util.collection.filter.FilteredIterator
Creates a new filtered iterator.
filteredIterator(Iterator<E>, Filter<? super E>) - Static method in class net.pterodactylus.util.collection.filter.Filters
Returns an iterator that contains only the elements from the given iterator that match the given filter.
filteredList(List<E>, Filter<? super E>) - Static method in class net.pterodactylus.util.collection.filter.Filters
Returns a list that contains only the elements from the given list that match the given filter.
filteredMap(Map<K, V>, Filter<Map.Entry<K, V>>) - Static method in class net.pterodactylus.util.collection.filter.Filters
Returns a map that contains only the elements from the given map that match the given filter.
filteredSet(Set<E>, Filter<? super E>) - Static method in class net.pterodactylus.util.collection.filter.Filters
Returns a set that contains only the elements from the given set that match the given filter.
filterObject(T) - Method in interface net.pterodactylus.util.collection.filter.Filter
Runs the given object through this filter and return whether the object matches this filter or not.
filterObject(T) - Method in class net.pterodactylus.util.collection.filter.MatchAllFilter
Runs the given object through this filter and return whether the object matches this filter or not.
filterObject(Object) - Method in class net.pterodactylus.util.collection.filter.NotNullFilter
Runs the given object through this filter and return whether the object matches this filter or not.
Filters - Class in net.pterodactylus.util.collection.filter
Defines various methods to filter Collections.
Filters() - Constructor for class net.pterodactylus.util.collection.filter.Filters
 
Filters() - Constructor for class net.pterodactylus.util.template.TemplateParser.Filters
 
findChild(E) - Method in interface net.pterodactylus.util.data.Node
Searches this node’s children recursively for a node that contains the given element.
findLength(InputStream) - Static method in class net.pterodactylus.util.io.StreamCopier
Finds the length of the input stream by reading until InputStream.read(byte[]) returns -1.
finish() - Method in class net.pterodactylus.util.thread.StoppableDelay
Marks the long-running operation as finished and runs the appropriate runnable.
fireIfPropertyChanged(String, Object, Object) - Method in class net.pterodactylus.util.beans.AbstractBean
Fires a property change event if the two values are not equal.
firePropertyChange(String, Object, Object) - Method in class net.pterodactylus.util.beans.AbstractBean
Notifies all listeners that a property has changed.
fireServiceStarted() - Method in class net.pterodactylus.util.service.ServiceListenerManager
Notifies listeners that a Service has been started.
fireServiceStateChanged(State, State) - Method in class net.pterodactylus.util.service.ServiceListenerManager
Notifies listeners that a Service has changed its State.
fireServiceStopped(Throwable) - Method in class net.pterodactylus.util.service.ServiceListenerManager
Notifies listeners that a Service has been stopped.
first() - Method in class net.pterodactylus.util.collection.Looper.Looped
Returns whether the wrapped element is the first element of the iterator.
flush() - Method in class net.pterodactylus.util.io.BitShiftedOutputStream
Flushes all unwritten data to the underlying output stream.
flush(int) - Method in class net.pterodactylus.util.io.BitShiftedOutputStream
Flushes this output stream, writing all unwritten values to the underlying output stream.
flush(Flushable) - Static method in class net.pterodactylus.util.io.Closer
Flushes the given flushable, swallowing any IOException that may occur.
flush(Object) - Static method in class net.pterodactylus.util.io.Closer
Flushes the given object by calling a method called “flush” without parameters, swallowing any IOException that may occur.
flush() - Method in class net.pterodactylus.util.io.TeeOutputStream
An effort is made to flush all output streams.
format(long, int) - Static method in class net.pterodactylus.util.number.Digits
Zero-pads the given value until it is at least the specified length in digits.
format(long) - Static method in class net.pterodactylus.util.number.SI
Formats the specified number using 1000-based units.
format(long, boolean) - Static method in class net.pterodactylus.util.number.SI
Formats the specified number using the specified units.
format(long, boolean, boolean) - Static method in class net.pterodactylus.util.number.SI
Formats the specified number using the specified units.
format(long, int, boolean, boolean) - Static method in class net.pterodactylus.util.number.SI
Formats the specified number using the specified units.
format(TemplateContext, Object, Map<String, Object>) - Method in class net.pterodactylus.util.template.CollectionSortFilter
Formats the given data object.
format(TemplateContext, Object, Map<String, Object>) - Method in class net.pterodactylus.util.template.ContainsFilter
Formats the given data object.
format(TemplateContext, Object, Map<String, Object>) - Method in class net.pterodactylus.util.template.DateFilter
Formats the given data object.
format(TemplateContext, Object, Map<String, Object>) - Method in class net.pterodactylus.util.template.DefaultFilter
Formats the given data object.
format(TemplateContext, Object, Map<String, Object>) - Method in interface net.pterodactylus.util.template.Filter
Formats the given data object.
format(TemplateContext, Object, Map<String, Object>) - Method in class net.pterodactylus.util.template.FormatFilter
Formats the given data object.
format(TemplateContext, Object, Map<String, Object>) - Method in class net.pterodactylus.util.template.HtmlFilter
Formats the given data object.
format(TemplateContext, Object, Map<String, Object>) - Method in class net.pterodactylus.util.template.InsertFilter
Formats the given data object.
format(TemplateContext, Object, Map<String, Object>) - Method in class net.pterodactylus.util.template.MatchFilter
Formats the given data object.
format(TemplateContext, Object, Map<String, Object>) - Method in class net.pterodactylus.util.template.ModFilter
Formats the given data object.
format(TemplateContext, Object, Map<String, Object>) - Method in class net.pterodactylus.util.template.PaginationFilter
Formats the given data object.
format(TemplateContext, Object, Map<String, Object>) - Method in class net.pterodactylus.util.template.RemoveFilter
Formats the given data object.
format(TemplateContext, Object, Map<String, Object>) - Method in class net.pterodactylus.util.template.ReplaceFilter
Formats the given data object.
format(TemplateContext, Object, Map<String, Object>) - Method in class net.pterodactylus.util.template.StoreFilter
Formats the given data object.
format(TemplateContext, Object, Map<String, Object>) - Method in class net.pterodactylus.util.template.XmlFilter
Formats the given data object.
format(double, StringBuffer, FieldPosition) - Method in class net.pterodactylus.util.text.RegularExpressionNumberFormat
format(long, StringBuffer, FieldPosition) - Method in class net.pterodactylus.util.text.RegularExpressionNumberFormat
formatBinary(long) - Static method in class net.pterodactylus.util.number.SI
Formats the specified number using 1024-based units.
FormatFilter - Class in net.pterodactylus.util.template
Filter implementation that formats the given data according to a given format, as per Formatter.
FormatFilter() - Constructor for class net.pterodactylus.util.template.FormatFilter
 
formatFractions(double, int, boolean) - Static method in class net.pterodactylus.util.number.Digits
Returns the given value formatted with the given number of fractional digits, showing final zeroes as well.
FormattedMessage - Class in net.pterodactylus.util.text
Container for a formatted message, consisting of a text format and parameters.
FormattedMessage(String, Object...) - Constructor for class net.pterodactylus.util.text.FormattedMessage
Creates a new formatted message.
forNull(T, T) - Static method in class net.pterodactylus.util.object.Default
Returns the given value if it is non-null, or the default value if the given value is null.
fromArray(T[]) - Static method in class net.pterodactylus.util.collection.Iterables
Returns an Iterable that returns an Iterator over the given elements.
fromArray(T[]) - Static method in class net.pterodactylus.util.collection.Iterators
Returns an Iterator over the given elements.
fromDataSource(DataSource) - Static method in class net.pterodactylus.util.database.AbstractDatabase
Creates a database from a DataSource.
fromDocument(Document) - Static method in class net.pterodactylus.util.xml.SimpleXML
Creates a SimpleXML node from the specified Document.
fromEnumeration(Enumeration<T>) - Static method in class net.pterodactylus.util.collection.Iterators
Returns an iterator wrapped around the given enumeration.

G

GarbageCollectionCommand - Class in net.pterodactylus.util.telnet
Command that performs a garbage collection.
GarbageCollectionCommand() - Constructor for class net.pterodactylus.util.telnet.GarbageCollectionCommand
Creates a new garbage collection command.
get(K) - Method in interface net.pterodactylus.util.cache.Cache
Returns a value from the cache.
get() - Method in interface net.pterodactylus.util.cache.ItemCache
Returns the cached item.
get(K) - Method in class net.pterodactylus.util.cache.MemoryCache
 
get() - Method in class net.pterodactylus.util.cache.MemoryItemCache
Returns the cached item.
get() - Method in class net.pterodactylus.util.cache.TimedMemoryItemCache
Returns the cached item.
get(Object) - Method in class net.pterodactylus.util.collection.ArrayMap
get() - Method in class net.pterodactylus.util.collection.Container
Returns the first element of this container, or null if this container is empty.
get(T) - Method in class net.pterodactylus.util.collection.Container
Returns the first element of this container, or the default value if this container is empty.
get() - Method in class net.pterodactylus.util.collection.IterableWrapper
Returns the first element of an iterator created by the wrapped iterable.
get(T) - Method in class net.pterodactylus.util.collection.IterableWrapper
Returns the first element of an iterator created by the wrapped iterable, or the given default value if the iterator does not contain any elements.
get() - Method in class net.pterodactylus.util.collection.ListBuilder
Returns the populated list.
get() - Method in class net.pterodactylus.util.collection.Looper.Looped
Returns the wrapped element.
get() - Method in class net.pterodactylus.util.collection.MapBuilder
Returns the populated map.
get() - Method in class net.pterodactylus.util.collection.Memoizer
Returns the memoized value.
get() - Method in class net.pterodactylus.util.collection.Once
Returns the wrapped object, or an “empty object” (might be null) if the object has already been retrieved by an earlier call to Once.get().
get() - Method in class net.pterodactylus.util.collection.SetBuilder
Returns the populated set.
get(Object) - Method in class net.pterodactylus.util.collection.TimedMap
get(String, Object...) - Method in class net.pterodactylus.util.i18n.I18n
Returns the translated value for the given key.
get(String) - Method in class net.pterodactylus.util.notify.TemplateNotification
Returns the template variable with the given name.
get(int) - Method in class net.pterodactylus.util.swing.ListModelList
get(int) - Method in class net.pterodactylus.util.swing.SortedListModel
get(TemplateContext, Object, String) - Method in interface net.pterodactylus.util.template.Accessor
Returns the member with the given name.
get(TemplateContext, Object, String) - Method in class net.pterodactylus.util.template.ListAccessor
Returns the member with the given name.
get(TemplateContext, Object, String) - Method in class net.pterodactylus.util.template.ReflectionAccessor
Returns the member with the given name.
get(String) - Method in class net.pterodactylus.util.template.TemplateContext
Returns the object with the given name.
get(String, Class<?>) - Method in class net.pterodactylus.util.template.TemplateContext
Returns the object with the given name, if its class is assignable to the given class.
get() - Method in class net.pterodactylus.util.thread.ObjectWrapper
Returns the wrapped object.
getAccessor(Class<?>) - Method in class net.pterodactylus.util.template.TemplateContext
Returns the accessor for the given class.
getAction() - Method in class net.pterodactylus.util.service.AbstractService
Returns the current action of the service.
getAction() - Method in interface net.pterodactylus.util.service.Service
Returns the current action of the service.
getAction() - Method in interface net.pterodactylus.util.service.ServiceMBean
Returns the current action of the service.
getAllMimeTypes() - Static method in class net.pterodactylus.util.io.MimeTypes
Returns a list of all known MIME types.
getAllocation(int) - Method in class net.pterodactylus.util.storage.Storage
Returns the allocation at the given directory index.
getAllowsChildren() - Method in class net.pterodactylus.util.swing.SortableTreeNode
getAppendix() - Method in class net.pterodactylus.util.version.Version
Returns the optional appendix.
getArguments() - Method in class net.pterodactylus.util.cmdline.CommandLine
Returns all remaining arguments from the original command-line arguments.
getAttribute() - Method in exception net.pterodactylus.util.config.AttributeNotFoundException
Returns the requested, non-existing attribute's name.
getAttribute(String) - Method in class net.pterodactylus.util.xml.SimpleXML
Returns the value of the attribute with the given name.
getAttribute(String, String) - Method in class net.pterodactylus.util.xml.SimpleXML
Returns the value of the attribute with the given name.
getAttributeNames() - Method in class net.pterodactylus.util.xml.SimpleXML
Returns all attributes’ names.
getBasicState() - Method in class net.pterodactylus.util.service.State
Returns the basic state of this state.
getBooleanValue(String) - Method in class net.pterodactylus.util.config.Configuration
Returns the boolean value stored at the given attribute.
getBooleanValue(String) - Method in interface net.pterodactylus.util.config.ExtendedConfigurationBackend
Returns the value of the given attribute from the backend.
getBriefDescription() - Method in class net.pterodactylus.util.telnet.AbstractCommand
Returns a brief description of this command.
getBriefDescription() - Method in interface net.pterodactylus.util.telnet.Command
Returns a brief description of this command.
getBuffer() - Method in class net.pterodactylus.util.storage.Allocation
Writes the contents of this Storable to a byte array.
getBuffer() - Method in interface net.pterodactylus.util.storage.Storable
Writes the contents of this Storable to a byte array.
getChar(byte[], int) - Static method in class net.pterodactylus.util.storage.Storable.Utils
Returns a char from the byte array.
getChild(int) - Method in interface net.pterodactylus.util.data.Node
Returns the child at the given index.
getChild(E) - Method in interface net.pterodactylus.util.data.Node
Returns the direct child node that contains the given element.
getChildAt(int) - Method in class net.pterodactylus.util.swing.SortableTreeNode
getChildCount() - Method in class net.pterodactylus.util.swing.SortableTreeNode
getChildNode(Node, String) - Static method in class net.pterodactylus.util.xml.DOMUtil
Returns the first child node of the given root node that has the given name.
getChildNodes(Node, String) - Static method in class net.pterodactylus.util.xml.DOMUtil
Returns all child nodes of the given root node with the given name.
getClassLoader() - Method in class net.pterodactylus.util.i18n.I18n.Source
Returns the source’s class loader.
getColumn() - Method in class net.pterodactylus.util.template.AbstractPart
Returns the column number of the tag.
getColumn() - Method in exception net.pterodactylus.util.template.TemplateException
Returns the column number of the erroneous tag, if any.
getConnection() - Method in class net.pterodactylus.util.database.AbstractDatabase
Creates a new connection to the database.
getConnection() - Method in class net.pterodactylus.util.database.PooledDataSource
 
getConnection(String, String) - Method in class net.pterodactylus.util.database.PooledDataSource
 
getConnection() - Method in class net.pterodactylus.util.database.URLDataSource
getConnection(String, String) - Method in class net.pterodactylus.util.database.URLDataSource
getContent() - Method in class net.pterodactylus.util.web.Response
Returns the output stream the response body has to be written to.
getContentType() - Method in class net.pterodactylus.util.web.Response
Returns the content type of the response.
getCounter() - Method in class net.pterodactylus.util.cmdline.Option
Returns the counter of the option.
getCreatedTime() - Method in class net.pterodactylus.util.notify.AbstractNotification
Returns the time when this notifiation was created.
getCreatedTime() - Method in interface net.pterodactylus.util.notify.Notification
Returns the time when this notifiation was created.
getDays() - Method in class net.pterodactylus.util.time.Duration
Returns the number of days in the last week of this duration
getDefaultLocale() - Method in class net.pterodactylus.util.i18n.I18n.Source
Returns the default locale of the source.
getDetailedDescription() - Method in class net.pterodactylus.util.telnet.AbstractCommand
Returns a detailed description of this command.
getDetailedDescription() - Method in interface net.pterodactylus.util.telnet.Command
Returns a detailed description of this command.
getDirectorySize() - Method in class net.pterodactylus.util.storage.Storage
Returns the size of the directory.
getDocument() - Method in class net.pterodactylus.util.xml.SimpleXML
Creates a Document from this node and all its child nodes.
getDoubleValue(String) - Method in class net.pterodactylus.util.config.Configuration
Returns the double value stored at the given attribute.
getDoubleValue(String) - Method in interface net.pterodactylus.util.config.ExtendedConfigurationBackend
Returns the value of the given attribute from the backend.
getDuration() - Method in class net.pterodactylus.util.time.Duration
Returns the length of this duration.
getElement() - Method in interface net.pterodactylus.util.data.Node
Returns the element that is stored in the node.
getElementAt(int) - Method in class net.pterodactylus.util.swing.ListModelList
getElementAt(int) - Method in class net.pterodactylus.util.swing.SortedListModel
getExecutor() - Method in class net.pterodactylus.util.event.AbstractListenerManager
Returns the executor for the event firing.
getField() - Method in class net.pterodactylus.util.database.OrderField
Returns the name of the field to sort by.
getFilter(String) - Method in class net.pterodactylus.util.template.TemplateContext
Returns the filter with the given name.
getFirst() - Method in class net.pterodactylus.util.collection.Triplet
Returns the first element.
getHeaders() - Method in class net.pterodactylus.util.web.Response
Returns HTTP headers of the response.
getHours() - Method in class net.pterodactylus.util.time.Duration
Returns the number of hours in the last day of this duration.
getId() - Method in class net.pterodactylus.util.database.DataObject
Returns the ID of the data object.
getId() - Method in class net.pterodactylus.util.notify.AbstractNotification
Returns the unique ID of this notification.
getId() - Method in interface net.pterodactylus.util.notify.Notification
Returns the unique ID of this notification.
getId() - Method in class net.pterodactylus.util.storage.Allocation
The ID of the object.
getId() - Method in interface net.pterodactylus.util.storage.Storable
The ID of the object.
getIdentityColumn() - Method in interface net.pterodactylus.util.database.DataObjectFactory
Returns the name of the column that holds the identity.
getIndex(TreeNode) - Method in class net.pterodactylus.util.swing.SortableTreeNode
getIndexOfChild(Node<E>) - Method in interface net.pterodactylus.util.data.Node
Returns the index of the given child node.
getIndexOfChild(E) - Method in interface net.pterodactylus.util.data.Node
Returns the index of the child node containing the given element.
getInitialContext() - Method in class net.pterodactylus.util.template.Template
Returns the initial context of this template.
getInstance() - Static method in class net.pterodactylus.util.template.TemplateContextFactory
Returns the static default instance of this template factory.
getInstance() - Static method in class net.pterodactylus.util.thread.Ticker
Returns the global ticker instance.
getInt(byte[], int) - Static method in class net.pterodactylus.util.storage.Storable.Utils
Returns an integer from the byte array.
getIntegerValue(String) - Method in interface net.pterodactylus.util.config.ExtendedConfigurationBackend
Returns the value of the given attribute from the backend.
getIntValue(String) - Method in class net.pterodactylus.util.config.Configuration
Returns the integer value stored at the given attribute.
getItem() - Method in interface net.pterodactylus.util.cache.CacheItem
Returns the wrapped item.
getItem() - Method in class net.pterodactylus.util.cache.DefaultCacheItem
Returns the wrapped item.
getItemCount() - Method in class net.pterodactylus.util.collection.Pagination
Returns the number of items on the current page.
getItems() - Method in class net.pterodactylus.util.collection.Pagination
Returns the items on the current page.
getKey(String) - Method in class net.pterodactylus.util.i18n.I18n
Returns the keycode from the value of the given key.
getKeyStroke(String) - Method in class net.pterodactylus.util.i18n.I18n
Returns a key stroke for use with swing accelerators.
getLastPage() - Method in class net.pterodactylus.util.collection.Pagination
Returns the index of the last page.
getLastUpdatedTime() - Method in class net.pterodactylus.util.notify.AbstractNotification
Returns the time when this notifiation was last updated.
getLastUpdatedTime() - Method in interface net.pterodactylus.util.notify.Notification
Returns the time when this notifiation was last updated.
getLeft() - Method in class net.pterodactylus.util.collection.Pair
Returns the left value.
getLeftField() - Method in class net.pterodactylus.util.database.Join
Returns the field of the previous table to match.
getLine() - Method in class net.pterodactylus.util.template.AbstractPart
Returns the line number of the tag.
getLine() - Method in exception net.pterodactylus.util.template.TemplateException
Returns the line number of the erroneous tag, if any.
getLines() - Method in class net.pterodactylus.util.telnet.Command.Reply
Returns the lines that make up this reply.
getListeners() - Method in class net.pterodactylus.util.event.AbstractListenerManager
Returns a list of all registered listeners.
getLocale() - Method in class net.pterodactylus.util.i18n.I18n
Returns the current locale.
getLogger(String) - Static method in class net.pterodactylus.util.logging.Logging
Returns a named logger from the logger hierarchy.
getLogger(Class<?>) - Static method in class net.pterodactylus.util.logging.Logging
Returns a named logger from the logger hierarchy.
getLoggerClass(String) - Static method in class net.pterodactylus.util.logging.Logging
Returns the class that created the logger with the given name.
getLoginTimeout() - Method in class net.pterodactylus.util.database.PooledDataSource
 
getLoginTimeout() - Method in class net.pterodactylus.util.database.URLDataSource
getLogWriter() - Method in class net.pterodactylus.util.database.PooledDataSource
 
getLogWriter() - Method in class net.pterodactylus.util.database.URLDataSource
getLong(byte[], int) - Static method in class net.pterodactylus.util.storage.Storable.Utils
Returns a long from the byte array.
getLongName() - Method in class net.pterodactylus.util.cmdline.Option
Returns the long name of the option.
getLongValue(String) - Method in class net.pterodactylus.util.config.Configuration
Returns the long value stored at the given attribute.
getLongValue(String) - Method in interface net.pterodactylus.util.config.ExtendedConfigurationBackend
Returns the value of the given attribute from the backend.
getMajor() - Method in class net.pterodactylus.util.version.Version
Returns the first number of the version.
getMethod() - Method in class net.pterodactylus.util.web.Request
Returns the HTTP method that was used to access the page.
getMilliseconds() - Method in class net.pterodactylus.util.time.Duration
Returns the number of milliseconds in the last second of this duration.
getMimeType(String) - Static method in class net.pterodactylus.util.io.MimeTypes
Returns a default MIME type for the given extension.
getMimeTypes(String) - Static method in class net.pterodactylus.util.io.MimeTypes
Returns a list of MIME types that are registered for the given extension.
getMinor() - Method in class net.pterodactylus.util.version.Version
Returns the second number of the version.
getMinutes() - Method in class net.pterodactylus.util.time.Duration
Returns the number of minutes in the last hour of this duration.
getMultiple(Query, ObjectCreator<T>) - Method in class net.pterodactylus.util.database.AbstractDatabase
 
getMultiple(Query, ObjectCreator<T>) - Method in interface net.pterodactylus.util.database.Database
Returns multiple query results.
getName() - Method in class net.pterodactylus.util.database.Field
Returns the name of the field.
getName() - Method in class net.pterodactylus.util.i18n.I18n.Source
Returns the name of the application.
getName() - Method in class net.pterodactylus.util.service.AbstractService
Returns the name of this service.
getName() - Method in interface net.pterodactylus.util.service.Service
Returns the name of this service.
getName() - Method in class net.pterodactylus.util.service.State
Returns the name of this state.
getName() - Method in class net.pterodactylus.util.telnet.AbstractCommand
Returns the name of this command.
getName() - Method in interface net.pterodactylus.util.telnet.Command
Returns the name of this command.
getName() - Method in class net.pterodactylus.util.template.TemplateParser.FilterDefinition
Returns the name of the filter.
getName() - Method in class net.pterodactylus.util.web.Header
Returns the name of this header field.
getName() - Method in class net.pterodactylus.util.xml.SimpleXML
Returns the name of this node.
getNextPage() - Method in class net.pterodactylus.util.collection.Pagination
Returns the index of the next page.
getNode(String) - Method in class net.pterodactylus.util.xml.SimpleXML
Returns the child node of this node with the specified name.
getNode(String[]) - Method in class net.pterodactylus.util.xml.SimpleXML
Returns the child node that is specified by the names.
getNodes() - Method in class net.pterodactylus.util.xml.SimpleXML
Returns all child nodes of this node.
getNodes(String) - Method in class net.pterodactylus.util.xml.SimpleXML
Returns all child nodes of this node with the specified name.
getNotification(String) - Method in class net.pterodactylus.util.notify.NotificationManager
Returns the notification with the given ID.
getNotifications() - Method in class net.pterodactylus.util.notify.NotificationManager
Returns all current notifications.
getNumber() - Method in class net.pterodactylus.util.database.Limit
Returns the number of results to retreive.
getNumber(int) - Method in class net.pterodactylus.util.version.Version
Returns the number at the given index.
getOption(char) - Method in class net.pterodactylus.util.cmdline.CommandLine
Returns the option with the given name.
getOption(String) - Method in class net.pterodactylus.util.cmdline.CommandLine
Returns the option with the given name.
getOrder() - Method in class net.pterodactylus.util.database.OrderField
Returns the order of the sort.
getOrdinal() - Method in class net.pterodactylus.util.service.State
Returns the ordinal number of this state.
getPage() - Method in class net.pterodactylus.util.collection.Pagination
Returns the current page, 0-based.
getPageCount() - Method in class net.pterodactylus.util.collection.Pagination
Returns the total number of pages.
getPageNumber() - Method in class net.pterodactylus.util.collection.Pagination
Returns the current page, 1-based.
getPageSize() - Method in class net.pterodactylus.util.collection.Pagination
Returns the number of items per page.
getParameter() - Method in class net.pterodactylus.util.database.ValueField
Returns the value of this field.
getParameters() - Method in class net.pterodactylus.util.database.AndWhereClause
Returns all parameters of this WHERE clause, in the same order as placeholders are specified.
getParameters() - Method in class net.pterodactylus.util.database.MatchAllWhereClause
Returns all parameters of this WHERE clause, in the same order as placeholders are specified.
getParameters() - Method in class net.pterodactylus.util.database.OrWhereClause
Returns all parameters of this WHERE clause, in the same order as placeholders are specified.
getParameters() - Method in class net.pterodactylus.util.database.ValueFieldWhereClause
Returns all parameters of this WHERE clause, in the same order as placeholders are specified.
getParameters() - Method in interface net.pterodactylus.util.database.WhereClause
Returns all parameters of this WHERE clause, in the same order as placeholders are specified.
getParameters() - Method in class net.pterodactylus.util.template.TemplateParser.FilterDefinition
Returns the parameters of the filter.
getParent() - Method in interface net.pterodactylus.util.data.Node
Returns the parent node of the node.
getParent() - Method in class net.pterodactylus.util.swing.SortableTreeNode
getParentLogger() - Method in class net.pterodactylus.util.database.PooledDataSource
 
getParentLogger() - Method in class net.pterodactylus.util.database.URLDataSource
 
getPatch() - Method in class net.pterodactylus.util.version.Version
Returns the fourth number of the version.
getPath() - Method in interface net.pterodactylus.util.web.Page
Returns the path of this page.
getPath() - Method in class net.pterodactylus.util.web.RedirectPage
Returns the path of this page.
getPath() - Method in class net.pterodactylus.util.web.StaticPage
Returns the path of this page.
getPath() - Method in class net.pterodactylus.util.web.TemplatePage
Returns the path of this page.
getPlugin(String) - Method in class net.pterodactylus.util.template.TemplateContext
Returns the plugin with the given name.
getPosition() - Method in class net.pterodactylus.util.storage.Allocation
Returns the block position of the data.
getPreviousPage() - Method in class net.pterodactylus.util.collection.Pagination
Returns the index of the previous page.
getPropertiesPath() - Method in class net.pterodactylus.util.i18n.I18n.Source
Returns the path of the properties.
getProperty(String) - Method in class net.pterodactylus.util.database.DataObject
Returns the value of the property with the given name.
getRelease() - Method in class net.pterodactylus.util.version.Version
Returns the third number of the version.
getRight() - Method in class net.pterodactylus.util.collection.Pair
Returns the right value.
getRightField() - Method in class net.pterodactylus.util.database.Join
Returns the field of the joined table to match with.
getRootNode() - Method in class net.pterodactylus.util.data.Tree
Returns the root node of the tree.
getSaveFields() - Method in class net.pterodactylus.util.database.DataObject
Retuns the fields that need to be saved when the object has changed.
getSecond() - Method in class net.pterodactylus.util.collection.Triplet
Returns the second element.
getSeconds() - Method in class net.pterodactylus.util.time.Duration
Returns the number of seconds in the last minute of this duration.
getSelectedItem() - Method in class net.pterodactylus.util.swing.ComboBoxModelList
getServiceAttribute(String) - Method in class net.pterodactylus.util.service.AbstractService
 
getServiceAttribute(String) - Method in interface net.pterodactylus.util.service.Service
Returns the value of the service attribute with the given name.
getSHA1Hasher() - Static method in class net.pterodactylus.util.crypto.MessageDigestHasher
Returns a hasher using the SHA-1 algorithm.
getSHA256Hasher() - Static method in class net.pterodactylus.util.crypto.MessageDigestHasher
Returns a hasher using the SHA-256 algorithm.
getSHA512Hasher() - Static method in class net.pterodactylus.util.crypto.MessageDigestHasher
Returns a hasher using the SHA-512 algorithm.
getShortName() - Method in class net.pterodactylus.util.cmdline.Option
Returns the short name of the option.
getSideComponentCount() - Method in class net.pterodactylus.util.swing.StatusBar
Returns the number of side components.
getSideComponents() - Method in class net.pterodactylus.util.swing.StatusBar
Returns all side components in order.
getSingle(Query, ObjectCreator<T>) - Method in class net.pterodactylus.util.database.AbstractDatabase
 
getSingle(Query, ObjectCreator<T>) - Method in interface net.pterodactylus.util.database.Database
Returns a single object from a database.
getSize() - Method in class net.pterodactylus.util.storage.Allocation
Returns the size of the data.
getSize() - Method in class net.pterodactylus.util.swing.ListModelList
getSize() - Method in class net.pterodactylus.util.swing.SortedListModel
getSource() - Method in class net.pterodactylus.util.event.AbstractListenerManager
Returns the source for the events.
getStart() - Method in class net.pterodactylus.util.database.Limit
Returns the index of the first result to retrieve.
getState() - Method in class net.pterodactylus.util.service.AbstractService
Returns the current state of this service.
getState() - Method in interface net.pterodactylus.util.service.Service
Returns the current state of this service.
getState() - Method in interface net.pterodactylus.util.service.ServiceMBean
Returns the state of the service.
getStateReason() - Method in class net.pterodactylus.util.service.AbstractService
Deprecated.
getStateReason() - Method in interface net.pterodactylus.util.service.Service
Deprecated.
getStatus() - Method in class net.pterodactylus.util.telnet.Command.Reply
Returns the status of this command.
getStatusCode() - Method in class net.pterodactylus.util.web.Response
Returns the HTTP status code of the response.
getStatusText() - Method in class net.pterodactylus.util.web.Response
Returns the HTTP status text.
getStringValue(String) - Method in class net.pterodactylus.util.config.Configuration
Returns the string value stored at the given attribute.
getTable() - Method in interface net.pterodactylus.util.database.DataObjectFactory
Returns the table the data object is stored in.
getTable() - Method in class net.pterodactylus.util.database.Join
Returns the table to join with.
getTarget() - Method in exception net.pterodactylus.util.web.RedirectException
Returns the target to redirect to.
getTemplate() - Method in class net.pterodactylus.util.notify.TemplateNotification
Expose the used template to subclasses.
getTemplate(TemplateContext, String) - Method in class net.pterodactylus.util.template.ChainingTemplateProvider
Retrieves the template with the given name.
getTemplate(TemplateContext, String) - Method in class net.pterodactylus.util.template.ClassPathTemplateProvider
Retrieves the template with the given name.
getTemplate(String) - Method in class net.pterodactylus.util.template.DefaultTheme
Returns the template with the given name.
getTemplate(TemplateContext, String) - Method in class net.pterodactylus.util.template.FilesystemTemplateProvider
Retrieves the template with the given name.
getTemplate(String) - Method in class net.pterodactylus.util.template.TemplateContext
Returns the template with the given name.
getTemplate(TemplateContext, String) - Method in class net.pterodactylus.util.template.TemplateContextProvider
Retrieves the template with the given name.
getTemplate(TemplateContext, String) - Method in interface net.pterodactylus.util.template.TemplateProvider
Retrieves the template with the given name.
getTemplateContext() - Method in class net.pterodactylus.util.notify.TemplateNotification
Returns the template that renders this notification.
getTheme(C) - Method in interface net.pterodactylus.util.template.ThemeSelector
Returns a theme for the given context.
getThird() - Method in class net.pterodactylus.util.collection.Triplet
Returns the third element.
getToolTipText(MouseEvent) - Method in class net.pterodactylus.util.swing.ToolTipList
getType() - Method in class net.pterodactylus.util.database.Join
Returns the join type.
getUri() - Method in class net.pterodactylus.util.web.Request
Returns the URI that was accessed.
getUserObject() - Method in class net.pterodactylus.util.swing.SortableTreeNode
Returns the user-defined object.
getValidators() - Method in class net.pterodactylus.util.validation.ValidatorContainer
Returns the list of validators.
getValue() - Method in class net.pterodactylus.util.cmdline.Option
Returns the value of the option’s parameter.
getValue() - Method in class net.pterodactylus.util.config.BooleanValue
Returns the wrapped value.
getValue(Boolean) - Method in class net.pterodactylus.util.config.BooleanValue
Returns the wrapped value, if possible.
getValue(String) - Method in class net.pterodactylus.util.config.CachingConfigurationBackend
Returns the value of the given attribute from the backend.
getValue(String) - Method in interface net.pterodactylus.util.config.ConfigurationBackend
Returns the value of the given attribute from the backend.
getValue() - Method in class net.pterodactylus.util.config.DoubleValue
Returns the wrapped value.
getValue(Double) - Method in class net.pterodactylus.util.config.DoubleValue
Returns the wrapped value, if possible.
getValue() - Method in class net.pterodactylus.util.config.IntegerValue
Returns the wrapped value.
getValue(Integer) - Method in class net.pterodactylus.util.config.IntegerValue
Returns the wrapped value, if possible.
getValue() - Method in class net.pterodactylus.util.config.LongValue
Returns the wrapped value.
getValue(Long) - Method in class net.pterodactylus.util.config.LongValue
Returns the wrapped value, if possible.
getValue(String) - Method in class net.pterodactylus.util.config.MapConfigurationBackend
Returns the value of the given attribute from the backend.
getValue() - Method in class net.pterodactylus.util.config.ReadOnlyValue
Returns the wrapped value.
getValue(T) - Method in class net.pterodactylus.util.config.ReadOnlyValue
Returns the wrapped value, if possible.
getValue() - Method in class net.pterodactylus.util.config.StringValue
Returns the wrapped value.
getValue(String) - Method in class net.pterodactylus.util.config.StringValue
Returns the wrapped value, if possible.
getValue() - Method in interface net.pterodactylus.util.config.Value
Returns the wrapped value.
getValue(T) - Method in interface net.pterodactylus.util.config.Value
Returns the wrapped value, if possible.
getValue(String) - Method in class net.pterodactylus.util.config.XMLConfigurationBackend
Returns the value of the given attribute from the backend.
getValue() - Method in class net.pterodactylus.util.xml.SimpleXML
Returns the value of this node.
getValue(String) - Method in class net.pterodactylus.util.xml.SimpleXML
Returns the value of the first child node with the specified name.
getValue(String, String) - Method in class net.pterodactylus.util.xml.SimpleXML
Returns the value of the first child node with the specified name, or the default value if there is no child node with the given name.
getWeeks() - Method in class net.pterodactylus.util.time.Duration
Returns the number of whole weeks in this duration.

H

handleRequest(REQ, Response) - Method in interface net.pterodactylus.util.web.Page
Handles a request.
handleRequest(REQ, Response) - Method in class net.pterodactylus.util.web.RedirectPage
Handles a request.
handleRequest(REQ, Response) - Method in class net.pterodactylus.util.web.StaticPage
Handles a request.
handleRequest(REQ, Response) - Method in class net.pterodactylus.util.web.TemplatePage
Handles a request.
has(String) - Method in class net.pterodactylus.util.i18n.I18n
Returns whether the current translation contains the given key.
hasAttribute(String) - Method in class net.pterodactylus.util.xml.SimpleXML
Checks whether this node contains the attribute with the given name.
hasChild(Node<E>) - Method in interface net.pterodactylus.util.data.Node
Returns whether the given node is a direct child of this node.
hasChild(E) - Method in interface net.pterodactylus.util.data.Node
Returns whether this node contains a child node containing the given element.
hash(byte[]) - Method in interface net.pterodactylus.util.crypto.Hasher
Hashes the given data.
hash(InputStream) - Method in interface net.pterodactylus.util.crypto.Hasher
Hashes the data from the given input stream.
hash(byte[]) - Method in class net.pterodactylus.util.crypto.MessageDigestHasher
Hashes the given data.
hash(InputStream) - Method in class net.pterodactylus.util.crypto.MessageDigestHasher
Hashes the data from the given input stream.
hashCode(Object) - Static method in class net.pterodactylus.util.collection.ObjectMethods
Calculates the hash code for the given object.
hashCode() - Method in class net.pterodactylus.util.collection.Pair
 
hashCode() - Method in class net.pterodactylus.util.collection.Triplet
 
hashCode() - Method in class net.pterodactylus.util.database.Field
hashCode() - Method in class net.pterodactylus.util.notify.AbstractNotification
HashCode - Class in net.pterodactylus.util.object
Calculates hash codes for Collections.
HashCode() - Constructor for class net.pterodactylus.util.object.HashCode
 
hashCode(Collection<?>) - Static method in class net.pterodactylus.util.object.HashCode
Calculates a hash code for all objects in the given collection.
hashCode() - Method in class net.pterodactylus.util.swing.SortedListModel
hashCode() - Method in class net.pterodactylus.util.version.Version
Hasher - Interface in net.pterodactylus.util.crypto
Interface for objects that can create hashes of byte-based data.
hasNext() - Method in class net.pterodactylus.util.collection.filter.FilteredIterator
hasNext() - Method in class net.pterodactylus.util.collection.IteratorWrapper
hasNext() - Method in class net.pterodactylus.util.collection.Looper.LooperIterator
hasNext() - Method in class net.pterodactylus.util.collection.mapper.MappedIterator
hasNext() - Method in class net.pterodactylus.util.collection.ObjectIterator
hasNext() - Method in class net.pterodactylus.util.collection.processor.ProcessedIterator
hasNode(String) - Method in class net.pterodactylus.util.xml.SimpleXML
Checks if this object has a child with the specified name.
hasNodes() - Method in class net.pterodactylus.util.xml.SimpleXML
Returns whether this node has any child nodes.
hasServiceAttribute(String) - Method in class net.pterodactylus.util.service.AbstractService
 
hasServiceAttribute(String) - Method in interface net.pterodactylus.util.service.Service
Returns whether this service contains a service attribute with the given name.
hasValue(String) - Method in class net.pterodactylus.util.web.Header
Returns whether this header field has a value matching the given value.
Header - Class in net.pterodactylus.util.web
A single HTTP header field which can have multiple values.
Header(String) - Constructor for class net.pterodactylus.util.web.Header
Creates a new header field with the given name.
HelpCommand - Class in net.pterodactylus.util.telnet
Command that outputs help information about commands.
HelpCommand(Collection<Command>) - Constructor for class net.pterodactylus.util.telnet.HelpCommand
Creates a new HELP command.
Hex - Class in net.pterodactylus.util.number
Contains methods to convert byte arrays to hex strings and vice versa.
Hex() - Constructor for class net.pterodactylus.util.number.Hex
 
HtmlFilter - Class in net.pterodactylus.util.template
Filters HTML by replacing all characters that match a defined HTML entity by that entity.
HtmlFilter() - Constructor for class net.pterodactylus.util.template.HtmlFilter
 

I

i18n - Variable in class net.pterodactylus.util.i18n.gui.I18nAction
The i18n handler.
I18n - Class in net.pterodactylus.util.i18n
Handles internationalization.
I18n(String, String, Locale) - Constructor for class net.pterodactylus.util.i18n.I18n
Creates a new i18n handler.
I18n(String, String, Locale, ClassLoader, Locale) - Constructor for class net.pterodactylus.util.i18n.I18n
Creates a new i18n handler.
I18n(I18n.Source) - Constructor for class net.pterodactylus.util.i18n.I18n
Creates a new i18n handler.
I18n(I18n.Source, Locale) - Constructor for class net.pterodactylus.util.i18n.I18n
Creates a new i18n handler.
I18n.RemovalReference - Class in net.pterodactylus.util.i18n
Identifying container for a removal reference.
I18n.Source - Class in net.pterodactylus.util.i18n
A localization (l10n) source.
I18nable - Interface in net.pterodactylus.util.i18n
Interface for objects that want to be notified when the language is changed.
I18nAction - Class in net.pterodactylus.util.i18n.gui
Helper class that initializes actions with values from I18n.
I18nAction(I18n, String) - Constructor for class net.pterodactylus.util.i18n.gui.I18nAction
Creates a new action that uses the given name as base name to get values from I18n.
I18nAction(I18n, I18n.RemovalReference, String) - Constructor for class net.pterodactylus.util.i18n.gui.I18nAction
Creates a new action that uses the given name as base name to get values from I18n.
I18nAction(I18n, String, Icon) - Constructor for class net.pterodactylus.util.i18n.gui.I18nAction
Creates a new action that uses the given name as base name to get values from I18n and the given icon.
I18nAction(I18n, I18n.RemovalReference, String, Icon) - Constructor for class net.pterodactylus.util.i18n.gui.I18nAction
Creates a new action that uses the given name as base name to get values from I18n and the given icon.
I18nAction(I18n, String, boolean) - Constructor for class net.pterodactylus.util.i18n.gui.I18nAction
Creates a new action that uses the given name as base name to get values from I18n.
I18nAction(I18n, I18n.RemovalReference, String, boolean) - Constructor for class net.pterodactylus.util.i18n.gui.I18nAction
Creates a new action that uses the given name as base name to get values from I18n.
I18nAction(I18n, String, boolean, Icon) - Constructor for class net.pterodactylus.util.i18n.gui.I18nAction
Creates a new action that uses the given name as base name to get values from I18n and the given icon.
I18nAction(I18n, I18n.RemovalReference, String, boolean, Icon) - Constructor for class net.pterodactylus.util.i18n.gui.I18nAction
Creates a new action that uses the given name as base name to get values from I18n and the given icon.
I18nLabel - Class in net.pterodactylus.util.i18n.gui
Label that can update itself from I18n.
I18nLabel(I18n, String) - Constructor for class net.pterodactylus.util.i18n.gui.I18nLabel
Creates a new label with the given I18n basename.
I18nLabel(I18n, I18n.RemovalReference, String) - Constructor for class net.pterodactylus.util.i18n.gui.I18nLabel
Creates a new label with the given I18n basename.
I18nLabel(I18n, String, Component) - Constructor for class net.pterodactylus.util.i18n.gui.I18nLabel
Creates a new label with the given I18n basename that optionally is a label for the given component.
I18nLabel(I18n, I18n.RemovalReference, String, Component) - Constructor for class net.pterodactylus.util.i18n.gui.I18nLabel
Creates a new label with the given I18n basename that optionally is a label for the given component.
I18nLabel(I18n, String, Object...) - Constructor for class net.pterodactylus.util.i18n.gui.I18nLabel
Creates a new label with the given I18n basename that optionally is a label for the given component.
I18nLabel(I18n, I18n.RemovalReference, String, Object...) - Constructor for class net.pterodactylus.util.i18n.gui.I18nLabel
Creates a new label with the given I18n basename that optionally is a label for the given component.
I18nLabel(I18n, String, Component, Object...) - Constructor for class net.pterodactylus.util.i18n.gui.I18nLabel
Creates a new label with the given I18n basename that optionally is a label for the given component.
I18nLabel(I18n, I18n.RemovalReference, String, Component, Object...) - Constructor for class net.pterodactylus.util.i18n.gui.I18nLabel
Creates a new label with the given I18n basename that optionally is a label for the given component.
I18nMenu - Class in net.pterodactylus.util.i18n.gui
Menu that receives its properties from I18n.
I18nMenu(I18n, String) - Constructor for class net.pterodactylus.util.i18n.gui.I18nMenu
Creates a new menu with the given I18n basename.
I18nMenu(I18n, I18n.RemovalReference, String) - Constructor for class net.pterodactylus.util.i18n.gui.I18nMenu
Creates a new menu with the given I18n basename.
I18nMenuItem - Class in net.pterodactylus.util.i18n.gui
I18nable wrapper around an AWT MenuItem that can also use an Action to be performed when it is selected.
I18nMenuItem(I18n, String) - Constructor for class net.pterodactylus.util.i18n.gui.I18nMenuItem
Creates a new i18nable menu item.
I18nMenuItem(I18n, I18n.RemovalReference, String) - Constructor for class net.pterodactylus.util.i18n.gui.I18nMenuItem
Creates a new i18nable menu item.
I18nMenuItem(I18n, String, Action) - Constructor for class net.pterodactylus.util.i18n.gui.I18nMenuItem
Creates a new i18nable menu item that will perform the given action when selected.
I18nMenuItem(I18n, I18n.RemovalReference, String, Action) - Constructor for class net.pterodactylus.util.i18n.gui.I18nMenuItem
Creates a new i18nable menu item that will perform the given action when selected.
I18nMenuItem(I18n, I18nAction) - Constructor for class net.pterodactylus.util.i18n.gui.I18nMenuItem
Creates a new i18nable menu item that used the properties of the given I18nAction.
I18nMenuItem(I18n, I18n.RemovalReference, I18nAction) - Constructor for class net.pterodactylus.util.i18n.gui.I18nMenuItem
Creates a new i18nable menu item that used the properties of the given I18nAction.
IconLoader - Class in net.pterodactylus.util.image
Loads an Icon or an Image from the class path.
IconLoader() - Constructor for class net.pterodactylus.util.image.IconLoader
 
IdentityValidator<T> - Class in net.pterodactylus.util.validation
Validator implementation that requires an object to be the same object as another object.
IdentityValidator(T) - Constructor for class net.pterodactylus.util.validation.IdentityValidator
Creates a new identity validator.
index() - Method in class net.pterodactylus.util.collection.Looper.Looped
Returns the index of the wrapped element.
indexOf(T) - Method in class net.pterodactylus.util.collection.Container
Returns the index of the given element in this container.
indexOf(Object) - Method in class net.pterodactylus.util.swing.ListModelList
indexOf(Object) - Method in class net.pterodactylus.util.swing.SortedListModel
init() - Method in class net.pterodactylus.util.service.AbstractService
Initializes this services.
init() - Method in interface net.pterodactylus.util.service.Service
Initializes the service.
insert(Query) - Method in class net.pterodactylus.util.database.AbstractDatabase
 
insert(Query) - Method in interface net.pterodactylus.util.database.Database
Inserts an object into the database and returns the automatically generated ID, if any.
insert(MutableTreeNode, int) - Method in class net.pterodactylus.util.swing.SortableTreeNode
InsertFilter - Class in net.pterodactylus.util.template
Filter implementation that works like a ReplaceFilter, only that the actual replacement value is read from a template variable, which can be set either using TemplateContext.set(String, Object) or using a StoreFilter.
InsertFilter() - Constructor for class net.pterodactylus.util.template.InsertFilter
 
INTEGER_CREATOR - Static variable in interface net.pterodactylus.util.database.ObjectCreator
A default integer creator.
IntegerCreator() - Constructor for class net.pterodactylus.util.database.ObjectCreator.IntegerCreator
Creates a new object creator that returns the integer value of the first column of the result set.
IntegerCreator(int) - Constructor for class net.pterodactylus.util.database.ObjectCreator.IntegerCreator
Creates a new object creator that returns the integer value of the given column.
IntegerParameter(Integer) - Constructor for class net.pterodactylus.util.database.Parameter.IntegerParameter
Creates a new parameter.
IntegerRangeValidator - Class in net.pterodactylus.util.validation
Validator implementation that validates that an Integer is within a given range.
IntegerRangeValidator(int, int) - Constructor for class net.pterodactylus.util.validation.IntegerRangeValidator
Creates a new integer range validator.
IntegerValue - Class in net.pterodactylus.util.config
A wrapper around an integer value.
IntegerValue(Configuration, String) - Constructor for class net.pterodactylus.util.config.IntegerValue
Creates a new integer value that updates its value to the given attribute from the given configuration.
INTERNAL_SERVER_ERROR - Static variable in class net.pterodactylus.util.telnet.Command.Reply
The “internal server error” status.
is(String, boolean) - Method in class net.pterodactylus.util.validation.Validation
Checks if the given value is true.
isAll(String, T, T...) - Method in class net.pterodactylus.util.validation.Validation
Checks whether the given object matches all of the expecteds values.
isDismissable() - Method in class net.pterodactylus.util.notify.AbstractNotification
Returns whether this notification may be dismissed by the user.
isDismissable() - Method in interface net.pterodactylus.util.notify.Notification
Returns whether this notification may be dismissed by the user.
isEither(String, T, T...) - Method in class net.pterodactylus.util.validation.Validation
Checks whether the given object matches any of the expecteds values.
isEmpty() - Method in class net.pterodactylus.util.collection.ArrayMap
isEmpty() - Method in class net.pterodactylus.util.collection.Container
Returns whether this container is empty.
isEmpty() - Method in class net.pterodactylus.util.collection.IterableWrapper
Checks whether the wrapped iterable contains at least one element.
isEmpty() - Method in class net.pterodactylus.util.collection.TimedMap
isEmpty() - Method in class net.pterodactylus.util.swing.ListModelList
isEmpty() - Method in class net.pterodactylus.util.swing.SortedListModel
isEqual(String, T, T) - Method in class net.pterodactylus.util.validation.Validation
Checks if the given value is equal to the expected value.
isFinished() - Method in class net.pterodactylus.util.thread.StoppableDelay
Returns whether the long-running operation has finished.
isFirst() - Method in class net.pterodactylus.util.collection.Pagination
Returns whether the current page is the first page
isGreater(String, long, long) - Method in class net.pterodactylus.util.validation.Validation
Checks if value is greater than lowerBound.
isGreater(String, double, double) - Method in class net.pterodactylus.util.validation.Validation
Checks if value is greater than lowerBound.
isGreaterOrEqual(String, long, long) - Method in class net.pterodactylus.util.validation.Validation
Checks if value is greater than lowerBound.
isGreaterOrEqual(String, double, double) - Method in class net.pterodactylus.util.validation.Validation
Checks if value is greater than lowerBound.
isInstanceOf(String, Object, Class<?>) - Method in class net.pterodactylus.util.validation.Validation
Checks whether the given object is assignable to an object of the given class.
isLast() - Method in class net.pterodactylus.util.collection.Pagination
Returns whether the current page is the last page.
isLeaf() - Method in class net.pterodactylus.util.swing.SortableTreeNode
isLess(String, long, long) - Method in class net.pterodactylus.util.validation.Validation
Checks if value is less than upperBound.
isLess(String, double, double) - Method in class net.pterodactylus.util.validation.Validation
Checks if value is less than upperBound.
isLessOrEqual(String, long, long) - Method in class net.pterodactylus.util.validation.Validation
Checks if value is less than upperBound.
isLessOrEqual(String, double, double) - Method in class net.pterodactylus.util.validation.Validation
Checks if value is less than upperBound.
isNecessary() - Method in class net.pterodactylus.util.collection.Pagination
Returns whether pagination is actually necessary, i.e. if the number of pages is greater than 1.
isNegative(String, long) - Method in class net.pterodactylus.util.validation.Validation
Checks if the given value is less than 0.
isNegative(String, double) - Method in class net.pterodactylus.util.validation.Validation
Checks if the given value is less than 0.
isNot(String, boolean) - Method in class net.pterodactylus.util.validation.Validation
Checks if the given value is false.
isNotEqual(String, T, T) - Method in class net.pterodactylus.util.validation.Validation
Checks if the given value is not equal to the expected value.
isNotNull(String, T) - Method in class net.pterodactylus.util.validation.Validation
Checks if the given object is not null.
isNull(String, T) - Method in class net.pterodactylus.util.validation.Validation
Checks if the given object is null.
isPositive(String, long) - Method in class net.pterodactylus.util.validation.Validation
Checks if the given value is greater to or equal to 0.
isPositive(String, double) - Method in class net.pterodactylus.util.validation.Validation
Checks if the given value is greater to or equal to 0.
isPrefixPage() - Method in interface net.pterodactylus.util.web.Page
Returns whether this page handles all paths beginning with Page.getPath() or whether this page only handles a single path.
isPrefixPage() - Method in class net.pterodactylus.util.web.RedirectPage
Returns whether this page handles all paths beginning with Page.getPath() or whether this page only handles a single path.
isPrefixPage() - Method in class net.pterodactylus.util.web.StaticPage
Returns whether this page handles all paths beginning with Page.getPath() or whether this page only handles a single path.
isPrefixPage() - Method in class net.pterodactylus.util.web.TemplatePage
Returns whether this page handles all paths beginning with Page.getPath() or whether this page only handles a single path.
isPresent() - Method in class net.pterodactylus.util.cmdline.Option
Returns whether this option was present in the command line.
isRetrieved() - Method in class net.pterodactylus.util.collection.Once
Returns whether the wrapped object has already been retrieved.
isSame(String, T, T) - Method in class net.pterodactylus.util.validation.Validation
Checks if the given value is the same as the expected value.
isSet() - Method in class net.pterodactylus.util.thread.ObjectWrapper
Returns whether the value has been set.
isWrapperFor(Class<?>) - Method in class net.pterodactylus.util.database.PooledDataSource
 
isWrapperFor(Class<?>) - Method in class net.pterodactylus.util.database.URLDataSource
ItemCache<T> - Interface in net.pterodactylus.util.cache
Cache for a single item.
ItemValueRetriever<T> - Interface in net.pterodactylus.util.cache
An ItemValueRetriever is used by AbstractItemCache to retrieve values that are then cached.
Iterables - Class in net.pterodactylus.util.collection
Helper methods to turn arbitary collections of elements into Iterables.
Iterables() - Constructor for class net.pterodactylus.util.collection.Iterables
 
IterableWrapper<T> - Class in net.pterodactylus.util.collection
Wrapper around an Iterable that can apply Filters and Mappers to the returned Iterators.
IterableWrapper(Iterable<T>) - Constructor for class net.pterodactylus.util.collection.IterableWrapper
Creates a new iterable wrapper.
iterator() - Method in class net.pterodactylus.util.collection.Container
iterator() - Method in class net.pterodactylus.util.collection.filter.FilteredIterable
iterator() - Method in class net.pterodactylus.util.collection.IterableWrapper
iterator() - Method in class net.pterodactylus.util.collection.Looper
iterator() - Method in class net.pterodactylus.util.collection.mapper.MappedIterable
iterator() - Method in class net.pterodactylus.util.collection.Pagination
iterator() - Method in class net.pterodactylus.util.collection.processor.ProcessedIterable
iterator() - Method in interface net.pterodactylus.util.data.Node
iterator() - Method in class net.pterodactylus.util.swing.ListModelList
iterator() - Method in class net.pterodactylus.util.swing.SortedListModel
iterator() - Method in class net.pterodactylus.util.web.Header
Iterators - Class in net.pterodactylus.util.collection
Helper methods to turn arbitary collections of elements into Iterators.
Iterators() - Constructor for class net.pterodactylus.util.collection.Iterators
 
IteratorWrapper<T> - Class in net.pterodactylus.util.collection
Wrapper around an Iterator that allows easy filtering and mapping of the returned elements.
IteratorWrapper(Iterator<T>) - Constructor for class net.pterodactylus.util.collection.IteratorWrapper
Creates a new wrapper around the given iterator.

J

Join - Class in net.pterodactylus.util.database
Models a join between two database tables.
Join(Join.JoinType, String, Field, Field) - Constructor for class net.pterodactylus.util.database.Join
Creates a new join between two tables.
Join.JoinType - Enum in net.pterodactylus.util.database
The type of the join.

K

keySet() - Method in class net.pterodactylus.util.collection.ArrayMap
keySet() - Method in class net.pterodactylus.util.collection.TimedMap

L

last() - Method in class net.pterodactylus.util.collection.Container
Returns a container that only contains the last element of this container.
last() - Method in class net.pterodactylus.util.collection.Looper.Looped
Returns whether the wrapped element is the last element of the iterator.
LAST_UPDATED_TIME_SORTER - Static variable in interface net.pterodactylus.util.notify.Notification
Sorts notifications by last update time, newest first.
lastIndexOf(Object) - Method in class net.pterodactylus.util.swing.ListModelList
lastIndexOf(Object) - Method in class net.pterodactylus.util.swing.SortedListModel
left - Variable in class net.pterodactylus.util.collection.Pair
The left value.
Limit - Class in net.pterodactylus.util.database
A LIMIT clause limits the results that are returned.
Limit(long) - Constructor for class net.pterodactylus.util.database.Limit
Creates a new limit clause that retrieves the given number of results.
Limit(long, long) - Constructor for class net.pterodactylus.util.database.Limit
Creates a new limit clause that retrieves the given number of results, starting at the given index.
LimitedInputStream - Class in net.pterodactylus.util.io
A wrapper around an InputStream that only supplies a limit number of bytes from the underlying input stream.
LimitedInputStream(InputStream, long) - Constructor for class net.pterodactylus.util.io.LimitedInputStream
Creates a new LimitedInputStream that supplies at most length bytes from the given input stream.
list() - Method in class net.pterodactylus.util.collection.IterableWrapper
Returns all elements contained in the wrapped iterable as a new List.
ListAccessor - Class in net.pterodactylus.util.template
Accessor implementation that allows to access a List by index.
ListAccessor() - Constructor for class net.pterodactylus.util.template.ListAccessor
 
ListBuilder<T> - Class in net.pterodactylus.util.collection
Convenience class to help construct Lists in a single command without extending an existing List class.
ListBuilder() - Constructor for class net.pterodactylus.util.collection.ListBuilder
Creates a new list builder that will populate an ArrayList and return it on ListBuilder.get().
ListBuilder(List<T>) - Constructor for class net.pterodactylus.util.collection.ListBuilder
Creates a new list builder that will populate the given list and return it on ListBuilder.get().
listIterator() - Method in class net.pterodactylus.util.swing.ListModelList
listIterator(int) - Method in class net.pterodactylus.util.swing.ListModelList
listIterator() - Method in class net.pterodactylus.util.swing.SortedListModel
listIterator(int) - Method in class net.pterodactylus.util.swing.SortedListModel
ListModelList<E> - Class in net.pterodactylus.util.swing
Wrapper around a List that doubles as a ListModel, e.g. for a JComboBox or a JList.
ListModelList(List<E>) - Constructor for class net.pterodactylus.util.swing.ListModelList
Creates a new list model list by wrapping the given list.
load(long) - Method in class net.pterodactylus.util.storage.Storage
Loads a storable.
loadAllByWhereClause(Database, DataObjectFactory<D>, WhereClause, OrderField...) - Static method in class net.pterodactylus.util.database.DataObject
Loads all data objects that match the given where clause from the given database.
loadById(Database, DataObjectFactory<D>, long) - Static method in class net.pterodactylus.util.database.DataObject
Loads a data object from the given database by the given ID.
loadByWhereClause(Database, DataObjectFactory<D>, WhereClause, OrderField...) - Static method in class net.pterodactylus.util.database.DataObject
Loads the first data object that matches the given where clause from the given database.
loadIcon(String) - Static method in class net.pterodactylus.util.image.IconLoader
Loads an icon from the class path.
loadImage(String) - Static method in class net.pterodactylus.util.image.IconLoader
Loads an image from the class path.
LOG_UNKNOWN_KEYS - Static variable in class net.pterodactylus.util.i18n.I18n
Whether to log access to unknown keys.
logged(LogRecord) - Method in interface net.pterodactylus.util.logging.LoggingListener
Notifies a listener that a new log record was received.
Logging - Class in net.pterodactylus.util.logging
Sets up logging.
Logging() - Constructor for class net.pterodactylus.util.logging.Logging
 
LoggingListener - Interface in net.pterodactylus.util.logging
Interface for components that want to receive logged messages.
LongParameter(Long) - Constructor for class net.pterodactylus.util.database.Parameter.LongParameter
Creates a new parameter.
LongRangeValidator - Class in net.pterodactylus.util.validation
Validator implementation that validates that a Long is within a given range.
LongRangeValidator(long, long) - Constructor for class net.pterodactylus.util.validation.LongRangeValidator
Creates a new long range validator.
LongValue - Class in net.pterodactylus.util.config
A wrapper around a long value.
LongValue(Configuration, String) - Constructor for class net.pterodactylus.util.config.LongValue
Creates a new long value that updates its value to the given attribute from the given configuration.
Looped(T, boolean, boolean, int) - Constructor for class net.pterodactylus.util.collection.Looper.Looped
Creates a new wrapper around the given element.
Looper<T> - Class in net.pterodactylus.util.collection
A looper wraps around an Iterable and adds some valuable properties to the elements being looped over.
Looper(Iterable<T>) - Constructor for class net.pterodactylus.util.collection.Looper
Creates a new looper.
Looper.Looped<T> - Class in net.pterodactylus.util.collection
Wrapper around an element of the original iterable.
Looper.LooperIterator<T> - Class in net.pterodactylus.util.collection
Wrapper around the Iterator returned by the original Iterable which wraps all returned elements into Looper.Loopeds.
LooperIterator(Iterator<T>) - Constructor for class net.pterodactylus.util.collection.Looper.LooperIterator
Creates a new wrapper around the given iterator.

M

main(String...) - Static method in class net.pterodactylus.util.telnet.TelnetControl
VM entry point for testing.
map(Mapper<T, O>) - Method in class net.pterodactylus.util.collection.Container
Maps all elements in this container using the given mapper and returns a container containing the mapped elements.
map(Map<T, O>) - Method in class net.pterodactylus.util.collection.Container
Maps all elements in this container using the given map and returns a container containing the mapped elements.
map(Mapper<? super T, ? extends O>) - Method in class net.pterodactylus.util.collection.IterableWrapper
Creates a new wrapper around the iterable that will have its elements mapped by the given mapper.
map(Mapper<? super T, ? extends O>) - Method in class net.pterodactylus.util.collection.IteratorWrapper
Creates a new iterator wrapper that will apply the given mapper to all values returned by this wrapper’s iterator.
map(I) - Method in interface net.pterodactylus.util.collection.mapper.Mapper
Maps the given input object to another object.
MAP_ACCESSOR - Static variable in interface net.pterodactylus.util.template.Accessor
Accessor for Maps.
MapBuilder<K,V> - Class in net.pterodactylus.util.collection
Convenience class to help build maps in a single command without extending the used Map class.
MapBuilder() - Constructor for class net.pterodactylus.util.collection.MapBuilder
Creates a new map builder that returns a new HashMap on MapBuilder.get().
MapBuilder(Map<K, V>) - Constructor for class net.pterodactylus.util.collection.MapBuilder
Creates a new map builder that returns the given map on MapBuilder.get().
MapConfigurationBackend - Class in net.pterodactylus.util.config
Configuration backend that is backed by a Map.
MapConfigurationBackend() - Constructor for class net.pterodactylus.util.config.MapConfigurationBackend
Creates a new configuration backend.
MapConfigurationBackend(Map<String, String>) - Constructor for class net.pterodactylus.util.config.MapConfigurationBackend
Creates a new configuration backend that contains the values from the given map.
MapConfigurationBackend(File) - Constructor for class net.pterodactylus.util.config.MapConfigurationBackend
Creates a new configuration backend that loads and stores its configuration in the given file.
MapConfigurationBackend(File, Map<String, String>) - Constructor for class net.pterodactylus.util.config.MapConfigurationBackend
Creates a new configuration backend from the given file that also contains the given values.
MapConfigurationBackend(File, boolean) - Constructor for class net.pterodactylus.util.config.MapConfigurationBackend
Creates a new configuration backend from the given file.
MapConfigurationBackend(File, boolean, Map<String, String>) - Constructor for class net.pterodactylus.util.config.MapConfigurationBackend
Creates a new configuration backend from the given file that also contains the given values.
MapCreator - Class in net.pterodactylus.util.database
ObjectCreator implementation that creates a Map from the current row of a ResultSet.
MapCreator() - Constructor for class net.pterodactylus.util.database.MapCreator
 
MappedIterable<I,O> - Class in net.pterodactylus.util.collection.mapper
Wrapper around an Iterable that will apply a Mapper to all Iterators it creates.
MappedIterable(Iterable<I>, Mapper<? super I, ? extends O>) - Constructor for class net.pterodactylus.util.collection.mapper.MappedIterable
Creates a new iterable mapper.
MappedIterator<I,O> - Class in net.pterodactylus.util.collection.mapper
Wrapper around an Iterator that will apply a Mapper to all returned items.
MappedIterator(Iterator<I>, Mapper<? super I, ? extends O>) - Constructor for class net.pterodactylus.util.collection.mapper.MappedIterator
Creates a new iterator mapper.
mappedList(List<I>, Mapper<I, O>) - Static method in class net.pterodactylus.util.collection.mapper.Mappers
Maps all objects in the given list and returns a list that contains the mapped objects in the same order as the input objects in the original list.
mappedSet(Set<I>, Mapper<I, O>) - Static method in class net.pterodactylus.util.collection.mapper.Mappers
Maps all objects in the given list and returns a list that contains the mapped objects.
Mapper<I,O> - Interface in net.pterodactylus.util.collection.mapper
Interface for objects that can map one object to another.
Mappers - Class in net.pterodactylus.util.collection.mapper
Helper methods for using the Mapper interface with Sets and Lists.
Mappers() - Constructor for class net.pterodactylus.util.collection.mapper.Mappers
 
MapWriter - Class in net.pterodactylus.util.collection
Helper class that emulates the function of Properties.store(java.io.OutputStream, String) and Properties.load(java.io.InputStream) but does not suffer from the drawbacks of Properties (namely the fact that a Properties can not contain null values).
MapWriter() - Constructor for class net.pterodactylus.util.collection.MapWriter
 
mark(int) - Method in class net.pterodactylus.util.io.LimitedInputStream
This method does nothing, as LimitedInputStream.mark(int) and LimitedInputStream.reset() are not supported.
markSupported() - Method in class net.pterodactylus.util.io.LimitedInputStream
MatchAllFilter<T> - Class in net.pterodactylus.util.collection.filter
Filter implementation that matches all objects.
MatchAllFilter() - Constructor for class net.pterodactylus.util.collection.filter.MatchAllFilter
 
MatchAllWhereClause - Class in net.pterodactylus.util.database
TODO
MatchAllWhereClause() - Constructor for class net.pterodactylus.util.database.MatchAllWhereClause
 
MatchFilter - Class in net.pterodactylus.util.template
Filter implementation that compares (for equality) the data either with a String (given as parameter “value”) or an object from the TemplateContext (whose name is given as parameter “key”).
MatchFilter() - Constructor for class net.pterodactylus.util.template.MatchFilter
 
Memoizer<T> - Class in net.pterodactylus.util.collection
Class that caches a single value.
Memoizer(Callable<T>) - Constructor for class net.pterodactylus.util.collection.Memoizer
Creates a new memoizer for the given callable.
MemoryCache<K,V> - Class in net.pterodactylus.util.cache
Memory-based Cache implementation.
MemoryCache(ValueRetriever<K, V>) - Constructor for class net.pterodactylus.util.cache.MemoryCache
Creates a new memory-based cache.
MemoryCache(ValueRetriever<K, V>, int) - Constructor for class net.pterodactylus.util.cache.MemoryCache
Creates a new memory-based cache.
MemoryCache(ValueRetriever<K, V>, Map<K, CacheItem<V>>) - Constructor for class net.pterodactylus.util.cache.MemoryCache
Creates a new memory cache, using the given map as storage backend.
MemoryCommand - Class in net.pterodactylus.util.telnet
Command that outputs some memory statistics.
MemoryCommand() - Constructor for class net.pterodactylus.util.telnet.MemoryCommand
Creates a new memory command.
MemoryItemCache<T> - Class in net.pterodactylus.util.cache
Basic implementation of an ItemCache that stores the retrieved item in memory.
MemoryItemCache(ItemValueRetriever<T>) - Constructor for class net.pterodactylus.util.cache.MemoryItemCache
Creates a new memory item cache.
merge(byte[], byte[]) - Static method in class net.pterodactylus.util.collection.Arrays
Merges the two arrays, returning an array that contains the elements of the first array followed by the elements of the second array.
mergeContext(TemplateContext) - Method in class net.pterodactylus.util.template.TemplateContext
Merges the accessors, filters, plugins, template providers, and template objects into this context.
MessageDigestHasher - Class in net.pterodactylus.util.crypto
Hasher implementation that uses a MessageDigest to create the hash.
MessageDigestHasher(MessageDigest) - Constructor for class net.pterodactylus.util.crypto.MessageDigestHasher
Creates a new message digest hasher.
Method - Enum in net.pterodactylus.util.web
Enumeration for all possible HTTP request methods.
MimeTypes - Class in net.pterodactylus.util.io
Handles MIME types and maps them to file extensions.
MimeTypes() - Constructor for class net.pterodactylus.util.io.MimeTypes
 
ModFilter - Class in net.pterodactylus.util.template
The mod filter performs a modulo operation on the given number and the parameter “divisor,” adding the optional parameter “offset” to the dividend, and returns true if the module operation did not return a rest, i.e.
ModFilter() - Constructor for class net.pterodactylus.util.template.ModFilter
 
MULTIPLE_CHOICES - Static variable in class net.pterodactylus.util.telnet.Command.Reply
The “multiple choices” status.

N

NamedThreadFactory - Class in net.pterodactylus.util.thread
ThreadFactory implementation that creates threads with a configurable name.
NamedThreadFactory(String) - Constructor for class net.pterodactylus.util.thread.NamedThreadFactory
Creates a new named thread factory with the given name format.
needsParameter() - Method in class net.pterodactylus.util.cmdline.Option
Returns whether the option needs a parameter.
net.pterodactylus.util.beans - package net.pterodactylus.util.beans
 
net.pterodactylus.util.cache - package net.pterodactylus.util.cache
 
net.pterodactylus.util.cmdline - package net.pterodactylus.util.cmdline
Command-line argument parser.
net.pterodactylus.util.collection - package net.pterodactylus.util.collection
 
net.pterodactylus.util.collection.filter - package net.pterodactylus.util.collection.filter
 
net.pterodactylus.util.collection.mapper - package net.pterodactylus.util.collection.mapper
 
net.pterodactylus.util.collection.processor - package net.pterodactylus.util.collection.processor
 
net.pterodactylus.util.config - package net.pterodactylus.util.config
API for handling application configurations.
net.pterodactylus.util.crypto - package net.pterodactylus.util.crypto
 
net.pterodactylus.util.data - package net.pterodactylus.util.data
 
net.pterodactylus.util.database - package net.pterodactylus.util.database
Helper and abstraction classes for database interaction.
net.pterodactylus.util.event - package net.pterodactylus.util.event
 
net.pterodactylus.util.i18n - package net.pterodactylus.util.i18n
 
net.pterodactylus.util.i18n.gui - package net.pterodactylus.util.i18n.gui
Contains various i18n-related Swing helper classes.
net.pterodactylus.util.image - package net.pterodactylus.util.image
 
net.pterodactylus.util.io - package net.pterodactylus.util.io
 
net.pterodactylus.util.logging - package net.pterodactylus.util.logging
 
net.pterodactylus.util.notify - package net.pterodactylus.util.notify
 
net.pterodactylus.util.number - package net.pterodactylus.util.number
 
net.pterodactylus.util.object - package net.pterodactylus.util.object
 
net.pterodactylus.util.service - package net.pterodactylus.util.service
Basic interface and implementation for services that can be started, stopped and run asynchronously in the background.
net.pterodactylus.util.storage - package net.pterodactylus.util.storage
 
net.pterodactylus.util.swing - package net.pterodactylus.util.swing
 
net.pterodactylus.util.telnet - package net.pterodactylus.util.telnet
 
net.pterodactylus.util.template - package net.pterodactylus.util.template
Light-weight template system.
net.pterodactylus.util.text - package net.pterodactylus.util.text
 
net.pterodactylus.util.thread - package net.pterodactylus.util.thread
 
net.pterodactylus.util.time - package net.pterodactylus.util.time
 
net.pterodactylus.util.validation - package net.pterodactylus.util.validation
 
net.pterodactylus.util.version - package net.pterodactylus.util.version
 
net.pterodactylus.util.web - package net.pterodactylus.util.web
 
net.pterodactylus.util.xml - package net.pterodactylus.util.xml
Package for XML-related utility classes.
newThread(Runnable) - Method in class net.pterodactylus.util.thread.DumpingThreadFactory
Creates a new DumpingThread that will execute the given runnable.
newThread(Runnable) - Method in class net.pterodactylus.util.thread.NamedThreadFactory
next() - Method in class net.pterodactylus.util.collection.filter.FilteredIterator
next() - Method in class net.pterodactylus.util.collection.IteratorWrapper
next() - Method in class net.pterodactylus.util.collection.Looper.LooperIterator
next() - Method in class net.pterodactylus.util.collection.mapper.MappedIterator
next() - Method in class net.pterodactylus.util.collection.ObjectIterator
next() - Method in class net.pterodactylus.util.collection.processor.ProcessedIterator
Node<E extends Comparable<E>> - Interface in net.pterodactylus.util.data
A node that can be stored in a Tree.
NOT_FOUND - Static variable in class net.pterodactylus.util.telnet.Command.Reply
The “not found” status.
Notification - Interface in net.pterodactylus.util.notify
A notification can be used to keep track of things that a user needs to be notified about.
notificationDismissed(Notification) - Method in interface net.pterodactylus.util.notify.NotificationListener
Notifies a listener that the given notification was dismissed.
notificationDismissed(Notification) - Method in class net.pterodactylus.util.notify.NotificationManager
Notifies a listener that the given notification was dismissed.
NotificationListener - Interface in net.pterodactylus.util.notify
Listener interface for objects that want to be notified on certain Notification events, such as when the notification is dismissed.
NotificationListenerManager - Class in net.pterodactylus.util.notify
Manager for NotificationListeners and Notification events.
NotificationListenerManager(Notification) - Constructor for class net.pterodactylus.util.notify.NotificationListenerManager
Creates a new NotificationListener manager.
NotificationManager - Class in net.pterodactylus.util.notify
Manager for all current notifications.
NotificationManager() - Constructor for class net.pterodactylus.util.notify.NotificationManager
 
notifySyncObject() - Method in class net.pterodactylus.util.service.AbstractService
NotNullFilter - Class in net.pterodactylus.util.collection.filter
Filter implementation that removes all null objects from a collection.
NotNullFilter() - Constructor for class net.pterodactylus.util.collection.filter.NotNullFilter
 
NotNullValidator<T> - Class in net.pterodactylus.util.validation
Validator implementation that validates that an object is not null.
NotNullValidator() - Constructor for class net.pterodactylus.util.validation.NotNullValidator
 
NotValidator<T> - Class in net.pterodactylus.util.validation
Validator implementation that inverts the result of another Validator.
NotValidator(Validator<T>) - Constructor for class net.pterodactylus.util.validation.NotValidator
Creates a new inverting validator.
NoWhitespaceRemover() - Constructor for class net.pterodactylus.util.template.WhitespaceRemover.NoWhitespaceRemover
 
NullOutputStream - Class in net.pterodactylus.util.io
OutputStream that discards all written bytes.
NullOutputStream() - Constructor for class net.pterodactylus.util.io.NullOutputStream
 
Numbers - Class in net.pterodactylus.util.number
Collection of various helper methods that deal with numbers.
Numbers() - Constructor for class net.pterodactylus.util.number.Numbers
 

O

ObjectCreator<T> - Interface in net.pterodactylus.util.database
An object creator is able to create a new object of type T from the current row of a ResultSet.
ObjectCreator.IntegerCreator - Class in net.pterodactylus.util.database
Creates a single integer from a result set.
ObjectCreator.StringCreator - Class in net.pterodactylus.util.database
Creates a single String from a result set.
ObjectIterator<T> - Class in net.pterodactylus.util.collection
Iterator implementation that iterates over a single object.
ObjectIterator(T) - Constructor for class net.pterodactylus.util.collection.ObjectIterator
Creates a new object iterator.
ObjectMethods - Class in net.pterodactylus.util.collection
Contains helper methods for implementating Object methods such as Object.equals(Object) and Object.hashCode() for objects that may be null.
ObjectMethods() - Constructor for class net.pterodactylus.util.collection.ObjectMethods
 
ObjectWrapper<T> - Class in net.pterodactylus.util.thread
Wrapper around an object that can be set and retrieved.
ObjectWrapper() - Constructor for class net.pterodactylus.util.thread.ObjectWrapper
 
offline - Static variable in class net.pterodactylus.util.service.State
Basic State for services that are not running.
OK - Static variable in class net.pterodactylus.util.telnet.Command.Reply
The “OK” status.
Once<T> - Class in net.pterodactylus.util.collection
Wrapper for an object that should once be returned once.
Once(T) - Constructor for class net.pterodactylus.util.collection.Once
Creates a new one-time wrapper, returning the given object on the first call to Once.get() and null on all subsequent calls.
Once(T, T) - Constructor for class net.pterodactylus.util.collection.Once
Creates a new one-time wrapper, returning object on the first call to Once.get() and emptyObject on all subsequent calls.
online - Static variable in class net.pterodactylus.util.service.State
Basic State for services that are running.
onProgress(long, long) - Method in interface net.pterodactylus.util.io.StreamCopier.ProgressListener
Notifiies a listener that a copy process made some progress.
open() - Method in class net.pterodactylus.util.storage.Storage
Opens this storage.
Option - Class in net.pterodactylus.util.cmdline
Container for CommandLine options and their values.
Option(char, String) - Constructor for class net.pterodactylus.util.cmdline.Option
Creates a new option that does not require a parameter.
Option(char, String, boolean) - Constructor for class net.pterodactylus.util.cmdline.Option
Creates a new option.
OrderField - Class in net.pterodactylus.util.database
An order field stores the name of the field to order a query result by and the direction of the sorting.
OrderField(Field) - Constructor for class net.pterodactylus.util.database.OrderField
Creates a new order field, sorting ascending by the given field.
OrderField(Field, OrderField.Order) - Constructor for class net.pterodactylus.util.database.OrderField
Creates a new order field, sorting in the given order by the given field.
OrderField.Order - Enum in net.pterodactylus.util.database
Defines the possible sort orders.
OrValidator<T> - Class in net.pterodactylus.util.validation
Validator implementation that requires at least one other Validator to validate an object.
OrValidator() - Constructor for class net.pterodactylus.util.validation.OrValidator
Creates a new “OR” validator.
OrValidator(Validator<T>...) - Constructor for class net.pterodactylus.util.validation.OrValidator
Creates a new “OR” validator.
OrWhereClause - Class in net.pterodactylus.util.database
WhereClause implementation that performs an OR conjunction of an arbitrary amount of where clauses.
OrWhereClause() - Constructor for class net.pterodactylus.util.database.OrWhereClause
Creates a new OR where clause.
OrWhereClause(WhereClause...) - Constructor for class net.pterodactylus.util.database.OrWhereClause
Creates a new OR where clause.
OrWhereClause(Collection<WhereClause>) - Constructor for class net.pterodactylus.util.database.OrWhereClause
Creates a new OR where clause.

P

Page<REQ extends Request> - Interface in net.pterodactylus.util.web
A page is responsible for handling HTTP requests and creating appropriate responses.
Pagination<T> - Class in net.pterodactylus.util.collection
Helper class for lists that need pagination.
Pagination(List<T>, int) - Constructor for class net.pterodactylus.util.collection.Pagination
Paginates the given list.
PaginationFilter - Class in net.pterodactylus.util.template
Filter implementation that paginates an Iterable.
PaginationFilter() - Constructor for class net.pterodactylus.util.template.PaginationFilter
 
PaginationPlugin - Class in net.pterodactylus.util.template
Plugin implementation that takes care of paginating a List of items (parameter “list”).
PaginationPlugin() - Constructor for class net.pterodactylus.util.template.PaginationPlugin
 
Pair<S,T> - Class in net.pterodactylus.util.collection
Container for two objects that are tied together.
Pair(S, T) - Constructor for class net.pterodactylus.util.collection.Pair
Creates a new pair consisting of the two values.
PairCreator<L,R> - Class in net.pterodactylus.util.database
Object creator implementation that creates a pair from two other object creators.
PairCreator(ObjectCreator<L>, ObjectCreator<R>) - Constructor for class net.pterodactylus.util.database.PairCreator
Creates a new pair object creator.
Parameter<T> - Class in net.pterodactylus.util.database
A Parameter stores a parameter value in its native type and can set it on a PreparedStatement using correct type information.
Parameter(T) - Constructor for class net.pterodactylus.util.database.Parameter
Creates a new parameter.
Parameter.BooleanParameter - Class in net.pterodactylus.util.database
Parameter implemetation for a Boolean value that supports NULL values.
Parameter.IntegerParameter - Class in net.pterodactylus.util.database
Parameter implemetation for a Integer value that supports NULL values.
Parameter.LongParameter - Class in net.pterodactylus.util.database
Parameter implemetation for a Long value that supports NULL values.
Parameter.StringParameter - Class in net.pterodactylus.util.database
Parameter implemetation for a String value that supports NULL values.
parse(String) - Method in interface net.pterodactylus.util.config.Parser
Parses an abstract object from a Configuration.
parse(Reader) - Static method in class net.pterodactylus.util.template.TemplateParser
Parses the input of the template if it wasn’t already parsed.
parse(Reader, WhitespaceRemover) - Static method in class net.pterodactylus.util.template.TemplateParser
Parses the input of the template if it wasn’t already parsed.
parse(String, ParsePosition) - Method in class net.pterodactylus.util.text.RegularExpressionNumberFormat
parse(String) - Static method in class net.pterodactylus.util.version.Version
Parses a version from the given string.
parseInt(String) - Static method in class net.pterodactylus.util.number.Digits
Parses the given string into an int, throwing an exception if the string contains invalid characters.
parseInt(String, int) - Static method in class net.pterodactylus.util.number.Digits
Parses the given string into an int, returning the given default value if the string contains invalid characters.
parseLine(String) - Static method in class net.pterodactylus.util.text.StringEscaper
Splits a string into words.
parseLong(String) - Static method in class net.pterodactylus.util.number.Digits
Parses the given string into a long, throwing an exception if the string contains invalid characters.
parseLong(String, long) - Static method in class net.pterodactylus.util.number.Digits
Parses the given string into a long, returning the given default value if the string contains invalid characters.
Parser<T> - Interface in net.pterodactylus.util.config
Interface for abstract object parsers.
Part - Interface in net.pterodactylus.util.template
Interface for a part of a template that can be rendered without further parsing.
persistString(String) - Static method in class net.pterodactylus.util.text.StringEscaper
Converts the string into a form that is suitable for storage in text-based medium.
Plugin - Interface in net.pterodactylus.util.template
Defines a template plugin.
PooledDataSource - Class in net.pterodactylus.util.database
A data source that uses an internal pool of opened connections.
PooledDataSource(DataSource) - Constructor for class net.pterodactylus.util.database.PooledDataSource
Creates a new pooled data source that wraps the given data source.
process(Processor<T>) - Method in class net.pterodactylus.util.collection.Container
Processes all elements in this container.
process(Processor<? super T>) - Method in class net.pterodactylus.util.collection.IterableWrapper
Creates a new wrapper around the iterable that will have its elements processed by the given processor.
process(Processor<? super T>) - Method in class net.pterodactylus.util.collection.IteratorWrapper
Creates a new iterator wrapper that will process all values returned by this wrapper’s iterator with the given processor.
process(T) - Method in interface net.pterodactylus.util.collection.processor.Processor
Processes the given object.
process(Query, ResultProcessor) - Method in class net.pterodactylus.util.database.AbstractDatabase
Processes the results of the given query with the given result processor.
process(Query, ResultProcessor) - Method in interface net.pterodactylus.util.database.Database
Processes the results of the given query with the given result processor.
ProcessedIterable<T> - Class in net.pterodactylus.util.collection.processor
Iterable implementation that applies a Processor to all elements of all iterators it creates.
ProcessedIterable(Iterable<T>, Processor<? super T>) - Constructor for class net.pterodactylus.util.collection.processor.ProcessedIterable
Creates a new processed iterable.
ProcessedIterator<T> - Class in net.pterodactylus.util.collection.processor
Iterator implementation that applies a Processor to each element before returning from the call to ProcessedIterator.next().
ProcessedIterator(Iterator<T>, Processor<? super T>) - Constructor for class net.pterodactylus.util.collection.processor.ProcessedIterator
Creates a new processed iterator.
Processor<T> - Interface in net.pterodactylus.util.collection.processor
A processor is used to process all elements of a Container.
processResult(ResultSet) - Method in interface net.pterodactylus.util.database.ResultProcessor
Processes the current row of the result set.
processTemplate(TemplateContext, REQ) - Method in class net.pterodactylus.util.web.TemplatePage
Allows subclasses to manipulate the template context in dependency of the request being served before the template itself is rendered.
put(K, V) - Method in class net.pterodactylus.util.cache.MemoryCache
Stores the given key-value pair in this cache without updating any backends.
put(K, V) - Method in interface net.pterodactylus.util.cache.WritableCache
Stores the given key-value pair in this cache without updating any backends.
put(K, V) - Method in class net.pterodactylus.util.collection.ArrayMap
put(K, V) - Method in class net.pterodactylus.util.collection.MapBuilder
Stores the given key value pair in the map.
put(K, V) - Method in class net.pterodactylus.util.collection.TimedMap
putAll(Map<? extends K, ? extends V>) - Method in class net.pterodactylus.util.collection.ArrayMap
putAll(Map<? extends K, ? extends V>) - Method in class net.pterodactylus.util.collection.MapBuilder
Stores all elements of the given map in the map being populated.
putAll(Map<? extends K, ? extends V>) - Method in class net.pterodactylus.util.collection.TimedMap
putChar(char, byte[], int) - Static method in class net.pterodactylus.util.storage.Storable.Utils
Stores a char in the byte array.
putInt(int, byte[], int) - Static method in class net.pterodactylus.util.storage.Storable.Utils
Stores an integer in the byte array.
putLong(long, byte[], int) - Static method in class net.pterodactylus.util.storage.Storable.Utils
Stores a long in the byte array.
putValue(String, String) - Method in class net.pterodactylus.util.config.CachingConfigurationBackend
Sets the value of the given attribute within the backend.
putValue(String, String) - Method in interface net.pterodactylus.util.config.ConfigurationBackend
Sets the value of the given attribute within the backend.
putValue(String, String) - Method in class net.pterodactylus.util.config.MapConfigurationBackend
Sets the value of the given attribute within the backend.
putValue(String, String) - Method in class net.pterodactylus.util.config.XMLConfigurationBackend
Sets the value of the given attribute within the backend.

Q

Query - Class in net.pterodactylus.util.database
Container for SQL queries and their parameters.
Query(Query.Type, String) - Constructor for class net.pterodactylus.util.database.Query
Creates a new query.
Query.Type - Enum in net.pterodactylus.util.database
The type of the query.
QuitCommand - Class in net.pterodactylus.util.telnet
Special command that closes the connection to the telnet control.
QuitCommand() - Constructor for class net.pterodactylus.util.telnet.QuitCommand
Creates a new quit command.

R

Range - Class in net.pterodactylus.util.collection
Helper methods to create Iterables to use with the enhanced for loop.
Range() - Constructor for class net.pterodactylus.util.collection.Range
 
read(Reader) - Static method in class net.pterodactylus.util.collection.MapWriter
Reads a map from the given reader.
read() - Method in class net.pterodactylus.util.io.BitShiftedInputStream
Reads a value from the underlying input stream.
read(int) - Method in class net.pterodactylus.util.io.BitShiftedInputStream
Reads a value with the given number of bits from the underlying input stream.
read() - Method in class net.pterodactylus.util.io.LimitedInputStream
 
read(byte[], int, int) - Method in class net.pterodactylus.util.io.LimitedInputStream
 
read(InputStream) - Static method in class net.pterodactylus.util.io.StreamReader
Reads a single byte from the given input stream.
readFully(InputStream, byte[]) - Static method in class net.pterodactylus.util.io.StreamReader
Fills the given buffer completely from the given input stream.
readFully(InputStream, byte[], int, int) - Static method in class net.pterodactylus.util.io.StreamReader
Fills the given part of the buffer from the given input stream.
ReadOnlyValue<T> - Class in net.pterodactylus.util.config
Implementation of a read-only value that never changes.
ReadOnlyValue(T) - Constructor for class net.pterodactylus.util.config.ReadOnlyValue
Creates a new read-only value.
RedirectException - Exception in net.pterodactylus.util.web
Exception that can be thrown to signal that a subclassed TemplatePage wants to redirect the user during the TemplatePage.processTemplate(TemplateContext, Request) method call.
RedirectException(String) - Constructor for exception net.pterodactylus.util.web.RedirectException
Creates a new redirect exception.
RedirectPage<REQ extends Request> - Class in net.pterodactylus.util.web
Page implementation that redirects the user to another URL.
RedirectPage(String, String) - Constructor for class net.pterodactylus.util.web.RedirectPage
Creates a new redirect page.
RedirectResponse - Class in net.pterodactylus.util.web
Response implementation that performs an HTTP redirect.
RedirectResponse(String) - Constructor for class net.pterodactylus.util.web.RedirectResponse
Creates a new redirect response to the new location.
RedirectResponse(String, boolean) - Constructor for class net.pterodactylus.util.web.RedirectResponse
Creates a new redirect response to the new location.
ReflectionAccessor - Class in net.pterodactylus.util.template
Accessor implementation that checks the object for a method that looks like a getter for the requested member name.
ReflectionAccessor() - Constructor for class net.pterodactylus.util.template.ReflectionAccessor
 
registerEvent(long, Runnable) - Method in class net.pterodactylus.util.thread.Ticker
registerEvent(long, Runnable, String) - Method in class net.pterodactylus.util.thread.Ticker
Registers a named thread that is executed at the specified time.
RegularExpressionNumberFormat - Class in net.pterodactylus.util.text
Number formatter that uses regular expressions to determine what text to show for a given number.
RegularExpressionNumberFormat(String) - Constructor for class net.pterodactylus.util.text.RegularExpressionNumberFormat
Creates a new regular expression number format.
RegularExpressionNumberFormat(String, char, char) - Constructor for class net.pterodactylus.util.text.RegularExpressionNumberFormat
Creates a new regular expression number format.
RemovalReference() - Constructor for class net.pterodactylus.util.i18n.I18n.RemovalReference
 
remove(K) - Method in interface net.pterodactylus.util.cache.Cache
Removes the cached value for the given key.
remove() - Method in interface net.pterodactylus.util.cache.CacheItem
Notifies the item that it is removed from the cache and can free any resources it uses.
remove() - Method in class net.pterodactylus.util.cache.DefaultCacheItem
Notifies the item that it is removed from the cache and can free any resources it uses.
remove(K) - Method in class net.pterodactylus.util.cache.MemoryCache
Removes the cached value for the given key.
remove(Object) - Method in class net.pterodactylus.util.collection.ArrayMap
remove(T) - Method in class net.pterodactylus.util.collection.Container
Returns a container that contains the elements of this container with the exception of the first occurence of the given element which is removed.
remove(int) - Method in class net.pterodactylus.util.collection.Container
Returns a container that contains the elements of this container with the exception of the element at the given index which is removed.
remove() - Method in class net.pterodactylus.util.collection.filter.FilteredIterator
remove() - Method in class net.pterodactylus.util.collection.IteratorWrapper
remove() - Method in class net.pterodactylus.util.collection.Looper.LooperIterator
remove() - Method in class net.pterodactylus.util.collection.mapper.MappedIterator
remove() - Method in class net.pterodactylus.util.collection.ObjectIterator
remove() - Method in class net.pterodactylus.util.collection.processor.ProcessedIterator
remove(Object) - Method in class net.pterodactylus.util.collection.TimedMap
remove(T) - Method in class net.pterodactylus.util.storage.Storage
Removes a storable.
remove(long) - Method in class net.pterodactylus.util.storage.Storage
Removes the storable with the given ID.
remove(Object) - Method in class net.pterodactylus.util.swing.ListModelList
remove(int) - Method in class net.pterodactylus.util.swing.ListModelList
remove(int) - Method in class net.pterodactylus.util.swing.SortableTreeNode
remove(MutableTreeNode) - Method in class net.pterodactylus.util.swing.SortableTreeNode
remove(int) - Method in class net.pterodactylus.util.swing.SortedListModel
remove(Object) - Method in class net.pterodactylus.util.swing.SortedListModel
remove(SimpleXML) - Method in class net.pterodactylus.util.xml.SimpleXML
Removes the specified child from this node.
remove(String) - Method in class net.pterodactylus.util.xml.SimpleXML
Removes the child with the specified name from this node.
removeAll(Collection<?>) - Method in class net.pterodactylus.util.swing.ListModelList
removeAll() - Method in class net.pterodactylus.util.swing.SortableTreeNode
Removes all children of this node.
removeAll(Collection<?>) - Method in class net.pterodactylus.util.swing.SortedListModel
removeAll() - Method in class net.pterodactylus.util.xml.SimpleXML
Removes all children from this node.
removeAllChildren() - Method in interface net.pterodactylus.util.data.Node
Removes all children from this node.
removeAttribute(String) - Method in class net.pterodactylus.util.xml.SimpleXML
Removes the attribute with the given name, returning its previous value.
removeChild(Node<E>) - Method in interface net.pterodactylus.util.data.Node
Remove the given child node from this node.
removeChild(E) - Method in interface net.pterodactylus.util.data.Node
Removes the child node that contains the given element.
removeChild(int) - Method in interface net.pterodactylus.util.data.Node
Removes the child at the given index.
RemoveFilter - Class in net.pterodactylus.util.template
Filter implementation that can remove elements from a Collection.
RemoveFilter() - Constructor for class net.pterodactylus.util.template.RemoveFilter
 
removeFromParent() - Method in class net.pterodactylus.util.swing.SortableTreeNode
removeI18nable(I18nable) - Method in class net.pterodactylus.util.i18n.I18n
Removes an i18n listener.
removeI18nables(I18n.RemovalReference) - Method in class net.pterodactylus.util.i18n.I18n
Removes all i18n listeners that have been I18n.addI18nable(I18nable, RemovalReference) using the given object as removal reference.
removeListDataListener(ListDataListener) - Method in class net.pterodactylus.util.swing.ListModelList
removeListener(L) - Method in class net.pterodactylus.util.event.AbstractListenerManager
Removes the given listener from the list of registered listeners.
removeLoggingListener(LoggingListener) - Static method in class net.pterodactylus.util.logging.Logging
Removes a listener from the log handler.
removeNotification(Notification) - Method in class net.pterodactylus.util.notify.NotificationManager
Removes the given notification.
removeNotificationListener(NotificationListener) - Method in class net.pterodactylus.util.notify.AbstractNotification
Removes the given notification listener.
removeNotificationListener(NotificationListener) - Method in interface net.pterodactylus.util.notify.Notification
Removes the given notification listener.
removePropertyChangeListener(PropertyChangeListener) - Method in class net.pterodactylus.util.beans.AbstractBean
Removes a property change listener.
removeServiceListener(ServiceListener) - Method in class net.pterodactylus.util.service.AbstractService
Removes the given service listeners from the list of service listeners.
removeServiceListener(ServiceListener) - Method in interface net.pterodactylus.util.service.Service
Removes the given service listeners from the list of service listeners.
removeSideComponent(int) - Method in class net.pterodactylus.util.swing.StatusBar
Removes the side component with the given index.
removeSideComponent(Component) - Method in class net.pterodactylus.util.swing.StatusBar
Removes the given side component.
removeSource(I18n.Source) - Method in class net.pterodactylus.util.i18n.I18n
Removes an additional l10n source.
removeWhitespace(String) - Method in class net.pterodactylus.util.template.BasicWhitespaceRemover
Removes whitespace from the given source string.
removeWhitespace(String) - Method in class net.pterodactylus.util.template.WhitespaceRemover.NoWhitespaceRemover
Removes whitespace from the given source string.
removeWhitespace(String) - Method in interface net.pterodactylus.util.template.WhitespaceRemover
Removes whitespace from the given source string.
render(Writer) - Method in class net.pterodactylus.util.database.AndWhereClause
Writes this WHERE clause to the given writer.
render(Writer) - Method in class net.pterodactylus.util.database.MatchAllWhereClause
Writes this WHERE clause to the given writer.
render(Writer) - Method in class net.pterodactylus.util.database.OrWhereClause
Writes this WHERE clause to the given writer.
render(Writer) - Method in class net.pterodactylus.util.database.Query
Renders this query to the given writer.
render(Writer) - Method in class net.pterodactylus.util.database.ValueFieldWhereClause
Writes this WHERE clause to the given writer.
render(Writer) - Method in interface net.pterodactylus.util.database.WhereClause
Writes this WHERE clause to the given writer.
render(Writer) - Method in interface net.pterodactylus.util.io.Renderable
Renders this object to the given writer.
render(Writer) - Method in interface net.pterodactylus.util.notify.Notification
Renders this notification to the given writer.
render(Writer) - Method in class net.pterodactylus.util.notify.TemplateNotification
Renders this notification to the given writer.
render(TemplateContext, Writer) - Method in class net.pterodactylus.util.notify.TemplateNotification
Renders this part.
render(String, TemplateContext, Writer) - Method in class net.pterodactylus.util.template.DefaultTheme
Renders the template with the given name using the the given template context to the given writer.
render(TemplateContext, Writer) - Method in interface net.pterodactylus.util.template.Part
Renders this part.
render(TemplateContext, Writer) - Method in class net.pterodactylus.util.template.TemplatePart
Renders this part.
render(String, TemplateContext, Writer) - Method in interface net.pterodactylus.util.template.Theme
Renders the template with the given name using the the given template context to the given writer.
Renderable - Interface in net.pterodactylus.util.io
Interface for objects that can render themselves to a Writer.
reopen() - Method in class net.pterodactylus.util.io.TemporaryInputStream
Creates a new input stream from the temporary file that is backing this input stream.
repackCentered(Window) - Static method in class net.pterodactylus.util.swing.SwingUtils
Packs the given window and positions it so that its center stays the same.
replace(String, String) - Method in class net.pterodactylus.util.xml.SimpleXML
Replace the child node with the specified name by a new node with the specified content.
replace(SimpleXML) - Method in class net.pterodactylus.util.xml.SimpleXML
Replaces the child node that has the same name as the given node by the given node.
ReplaceFilter - Class in net.pterodactylus.util.template
Filter implementation that replaces parts of a value.
ReplaceFilter() - Constructor for class net.pterodactylus.util.template.ReplaceFilter
 
Reply(int) - Constructor for class net.pterodactylus.util.telnet.Command.Reply
Creates a new reply with the given status.
Reply(int, String) - Constructor for class net.pterodactylus.util.telnet.Command.Reply
Creates a new reply with the given status and line.
Reply(int, String...) - Constructor for class net.pterodactylus.util.telnet.Command.Reply
Creates a new reply with the given status and lines.
Reply(int, List<String>) - Constructor for class net.pterodactylus.util.telnet.Command.Reply
Creates a new reply with the given status and lines.
Request - Class in net.pterodactylus.util.web
Container for request data.
Request(URI, Method) - Constructor for class net.pterodactylus.util.web.Request
Creates a new request that holds the given data.
reset() - Method in class net.pterodactylus.util.collection.Once
Resets whether the wrapped object was retrieved by a call to Once.get().
reset() - Method in class net.pterodactylus.util.io.LimitedInputStream
This method does nothing, as LimitedInputStream.mark(int) and LimitedInputStream.reset() are not supported.
Response - Class in net.pterodactylus.util.web
Container for the HTTP response of a Page.
Response(OutputStream) - Constructor for class net.pterodactylus.util.web.Response
Creates a new response.
restore(byte[]) - Method in class net.pterodactylus.util.storage.Allocation.AllocationFactory
Creates an object from the given byte array.
restore(byte[]) - Method in interface net.pterodactylus.util.storage.Factory
Creates an object from the given byte array.
ResultProcessor - Interface in net.pterodactylus.util.database
A result processor is similar to an ObjectCreator but it does not return created objects but processes results in an arbitrary way.
retainAll(Collection<?>) - Method in class net.pterodactylus.util.swing.ListModelList
retainAll(Collection<?>) - Method in class net.pterodactylus.util.swing.SortedListModel
retrieve() - Method in interface net.pterodactylus.util.cache.ItemValueRetriever
Retrieves the item to cache.
retrieve(K) - Method in interface net.pterodactylus.util.cache.ValueRetriever
Retrieves the value for the given key.
retrieveValue(K) - Method in class net.pterodactylus.util.cache.AbstractCache
Retrieves a value from the value retriever.
retrieveValue() - Method in class net.pterodactylus.util.cache.AbstractItemCache
Retrieves the value of the item to cache.
returnConnection(Connection) - Method in class net.pterodactylus.util.database.AbstractDatabase
Returns the connection after it has been used.
reverse() - Method in class net.pterodactylus.util.collection.Container
Returns a container with the elements of this container in reverse order.
ReverseComparator<T> - Class in net.pterodactylus.util.collection
This Comparator implementation compares to Comparables but reverses the result of the comparison.
ReverseComparator(Comparator<T>) - Constructor for class net.pterodactylus.util.collection.ReverseComparator
Creates a new comparator that reverse the given comparator.
reverseFilter(Filter<E>) - Static method in class net.pterodactylus.util.collection.filter.Filters
Returns a filter that reverses the given filter.
right - Variable in class net.pterodactylus.util.collection.Pair
The right value.
rotateLeft(int, int) - Static method in class net.pterodactylus.util.number.Bits
Rotates the bits in the given value to the left.
rotateLeft(long, int) - Static method in class net.pterodactylus.util.number.Bits
Rotates the bits in the given value to the left.
rotateRight(int, int) - Static method in class net.pterodactylus.util.number.Bits
Rotates the bits in the given value to the right.
rotateRight(long, int) - Static method in class net.pterodactylus.util.number.Bits
Rotates the bits in the given value to the right.
round(double, double) - Static method in class net.pterodactylus.util.number.Digits
Rounds the given number to the nearest multiple of unit.
run() - Method in class net.pterodactylus.util.service.AbstractService
Runner for the main AbstractService.serviceRun() method.
run() - Method in class net.pterodactylus.util.thread.DumpingThread
Executes the runnable in a try-catch block and dumps the thrown exception to the DumpingThread.logger.
run() - Method in class net.pterodactylus.util.thread.StoppableDelay
run() - Method in class net.pterodactylus.util.thread.Ticker
Main ticker thread.

S

safeParseInteger(Object) - Static method in class net.pterodactylus.util.number.Numbers
Tries to parse the String representation of the given object (as per String.valueOf(Object)) as an Integer.
safeParseInteger(Object, Integer) - Static method in class net.pterodactylus.util.number.Numbers
Tries to parse the String representation of the given object (as per String.valueOf(Object)) as an Integer.
safeParseLong(Object) - Static method in class net.pterodactylus.util.number.Numbers
Tries to parse the String representation of the given object (as per String.valueOf(Object)) as a Long.
safeParseLong(Object, Long) - Static method in class net.pterodactylus.util.number.Numbers
Tries to parse the String representation of the given object (as per String.valueOf(Object)) as a Long.
save() - Method in class net.pterodactylus.util.config.CachingConfigurationBackend
Saves the configuration.
save() - Method in class net.pterodactylus.util.config.Configuration
Saves the configuration.
save() - Method in interface net.pterodactylus.util.config.ConfigurationBackend
Saves the configuration.
save() - Method in class net.pterodactylus.util.config.MapConfigurationBackend
Saves the configuration.
save() - Method in class net.pterodactylus.util.config.XMLConfigurationBackend
Saves the configuration.
save(Database) - Method in class net.pterodactylus.util.database.DataObject
Saves this data object to the database if it is dirty.
save(Database, boolean) - Method in class net.pterodactylus.util.database.DataObject
Saves this data object to the database if it is dirty, or if the force parameter is true.
saveValues() - Method in class net.pterodactylus.util.config.MapConfigurationBackend
Saves the configuration to the configuration file, if it is not null.
Service - Interface in net.pterodactylus.util.service
Interface for services.
serviceDestroy() - Method in class net.pterodactylus.util.service.AbstractService
Empty implementation.
serviceInit() - Method in class net.pterodactylus.util.service.AbstractService
Empty initialization.
ServiceListener - Interface in net.pterodactylus.util.service
 
ServiceListenerManager - Class in net.pterodactylus.util.service
Listener manager for ServiceListeners.
ServiceListenerManager(Service) - Constructor for class net.pterodactylus.util.service.ServiceListenerManager
Creates a new listener manager for ServiceListeners.
ServiceMBean - Interface in net.pterodactylus.util.service
MBean interface for all Service implementations.
serviceRun() - Method in class net.pterodactylus.util.service.AbstractService
Empty implementation.
serviceRun() - Method in class net.pterodactylus.util.telnet.ControlConnection
Empty implementation.
serviceRun() - Method in class net.pterodactylus.util.telnet.TelnetControl
Empty implementation.
serviceStart() - Method in class net.pterodactylus.util.service.AbstractService
Empty implementation.
serviceStarted(Service) - Method in interface net.pterodactylus.util.service.ServiceListener
Notifies listeners that a Service has been started.
serviceStateChanged(Service, State, State) - Method in interface net.pterodactylus.util.service.ServiceListener
Notifies listeners that a Service has changed its State.
serviceStop() - Method in class net.pterodactylus.util.service.AbstractService
Empty implementation.
serviceStop() - Method in class net.pterodactylus.util.telnet.ControlConnection
Empty implementation.
serviceStop() - Method in class net.pterodactylus.util.telnet.TelnetControl
Empty implementation.
serviceStopped(Service, Throwable) - Method in interface net.pterodactylus.util.service.ServiceListener
Notifies listeners that a Service has been stopped.
set(PreparedStatement, int) - Method in class net.pterodactylus.util.database.Parameter.BooleanParameter
Sets the value on the prepared statement.
set(PreparedStatement, int) - Method in class net.pterodactylus.util.database.Parameter.IntegerParameter
Sets the value on the prepared statement.
set(PreparedStatement, int) - Method in class net.pterodactylus.util.database.Parameter.LongParameter
Sets the value on the prepared statement.
set(PreparedStatement, int) - Method in class net.pterodactylus.util.database.Parameter
Sets the value on the prepared statement.
set(PreparedStatement, int) - Method in class net.pterodactylus.util.database.Parameter.StringParameter
Sets the value on the prepared statement.
set(String, Object) - Method in class net.pterodactylus.util.notify.TemplateNotification
Sets a template variable.
set(int, E) - Method in class net.pterodactylus.util.swing.ListModelList
set(int, T) - Method in class net.pterodactylus.util.swing.SortedListModel
set(String, Object) - Method in class net.pterodactylus.util.template.TemplateContext
Sets the object with the given name to the given value.
set(String, Object, boolean) - Method in class net.pterodactylus.util.template.TemplateContext
Sets the object with the given name to the given value.
set(T) - Method in class net.pterodactylus.util.thread.ObjectWrapper
Sets the wrapped object.
setAction(String) - Method in class net.pterodactylus.util.service.AbstractService
Sets the action of the service.
setAttribute(String, String) - Method in class net.pterodactylus.util.xml.SimpleXML
Sets the value of an attribute.
setBooleanValue(String, Boolean) - Method in interface net.pterodactylus.util.config.ExtendedConfigurationBackend
Sets the value of the given attribute within the backend.
setBufferSize(int) - Static method in class net.pterodactylus.util.io.StreamCopier
Sets the buffer size for following transfers.
SetBuilder<T> - Class in net.pterodactylus.util.collection
Convenience class to help construct Sets in a single command without extending an existing Set class.
SetBuilder() - Constructor for class net.pterodactylus.util.collection.SetBuilder
Creates a new set builder that will populate a HashSet and return it on SetBuilder.get().
SetBuilder(Set<T>) - Constructor for class net.pterodactylus.util.collection.SetBuilder
Creates a new set builder that will populate the given set and return it on SetBuilder.get().
setContentType(String) - Method in class net.pterodactylus.util.web.Response
Sets the content type of this response.
setDismissable(boolean) - Method in class net.pterodactylus.util.notify.AbstractNotification
Sets whether this notification is dismissable.
setDoubleValue(String, Double) - Method in interface net.pterodactylus.util.config.ExtendedConfigurationBackend
Sets the value of the given attribute within the backend.
setIntegerValue(String, Integer) - Method in interface net.pterodactylus.util.config.ExtendedConfigurationBackend
Sets the value of the given attribute within the backend.
setLastUpdateTime(long) - Method in class net.pterodactylus.util.notify.AbstractNotification
Sets the last updated time.
setLimit(Limit) - Method in class net.pterodactylus.util.database.Query
Sets the limit for this query.
setListenPort(int) - Method in class net.pterodactylus.util.telnet.TelnetControl
Sets the port to listen on.
setLocale(Locale) - Method in class net.pterodactylus.util.i18n.I18n
Sets the current locale.
setLogger(Logger) - Static method in class net.pterodactylus.util.cache.MemoryCache
Sets the logger to use.
setLoginTimeout(int) - Method in class net.pterodactylus.util.database.PooledDataSource
 
setLoginTimeout(int) - Method in class net.pterodactylus.util.database.URLDataSource
setLogThreadStartAndEnd(boolean) - Method in class net.pterodactylus.util.thread.DumpingThread
Sets whether the started thread should logs its start and end.
setLogWriter(PrintWriter) - Method in class net.pterodactylus.util.database.PooledDataSource
 
setLogWriter(PrintWriter) - Method in class net.pterodactylus.util.database.URLDataSource
setLongValue(String, Long) - Method in interface net.pterodactylus.util.config.ExtendedConfigurationBackend
Sets the value of the given attribute within the backend.
setPage(int) - Method in class net.pterodactylus.util.collection.Pagination
Sets the new page.
setPageSize(int) - Method in class net.pterodactylus.util.collection.Pagination
Sets the page size.
setParent(MutableTreeNode) - Method in class net.pterodactylus.util.swing.SortableTreeNode
setProperty(String, Object) - Method in class net.pterodactylus.util.database.DataObject
Sets the property with the given name to the given value.
setRootLevel(Level) - Static method in class net.pterodactylus.util.logging.Logging
Sets the log level of the hierarchy’s root logger.
setSelectedItem(Object) - Method in class net.pterodactylus.util.swing.ComboBoxModelList
setServiceAttribute(String, Object) - Method in class net.pterodactylus.util.service.AbstractService
 
setServiceAttribute(String, Object) - Method in interface net.pterodactylus.util.service.Service
Sets the service attribute with the given name to the given value.
setState(State) - Method in class net.pterodactylus.util.service.AbstractService
Sets the new state of this service without changing the action.
setState(State, String) - Method in class net.pterodactylus.util.service.AbstractService
Sets the new state of this service.
setStateReason(String) - Method in class net.pterodactylus.util.service.AbstractService
Deprecated.
setStatusCode(int) - Method in class net.pterodactylus.util.web.Response
Sets the status code of this response.
setStatusText(String) - Method in class net.pterodactylus.util.web.Response
Sets the text of the HTTP status line.
setText(String) - Method in class net.pterodactylus.util.swing.StatusBar
Sets the text of the label.
setThreadFactory(ThreadFactory) - Method in class net.pterodactylus.util.service.AbstractService
Sets the thread factory that this service uses to spawn new threads.
setup(String) - Static method in class net.pterodactylus.util.logging.Logging
Sets up logging and installs the log handler.
setupConsoleLogging() - Static method in class net.pterodactylus.util.logging.Logging
Initializes console logging.
setUserObject(Object) - Method in class net.pterodactylus.util.swing.SortableTreeNode
setValue(Boolean) - Method in class net.pterodactylus.util.config.BooleanValue
Sets a new wrapped value.
setValue(Double) - Method in class net.pterodactylus.util.config.DoubleValue
Sets a new wrapped value.
setValue(Integer) - Method in class net.pterodactylus.util.config.IntegerValue
Sets a new wrapped value.
setValue(Long) - Method in class net.pterodactylus.util.config.LongValue
Sets a new wrapped value.
setValue(T) - Method in class net.pterodactylus.util.config.ReadOnlyValue
Sets a new wrapped value.
setValue(String) - Method in class net.pterodactylus.util.config.StringValue
Sets a new wrapped value.
setValue(T) - Method in interface net.pterodactylus.util.config.Value
Sets a new wrapped value.
setValue(String) - Method in class net.pterodactylus.util.xml.SimpleXML
Sets the value of this node.
shouldStop() - Method in class net.pterodactylus.util.service.AbstractService
Returns whether this service should stop.
shutdown() - Static method in class net.pterodactylus.util.logging.Logging
Shuts this logging hierarchy down by removing all Handlers from the root logger.
SI - Class in net.pterodactylus.util.number
Formats a decimal number with SI units.
SI() - Constructor for class net.pterodactylus.util.number.SI
 
SimpleStringEscaper - Class in net.pterodactylus.util.text
A more simple approach to String escaping, compared to StringEscaper (which is actually more concerned with parsing words from a line).
SimpleStringEscaper() - Constructor for class net.pterodactylus.util.text.SimpleStringEscaper
 
SimpleXML - Class in net.pterodactylus.util.xml
SimpleXML is a helper class to construct XML trees in a fast and simple way.
SimpleXML() - Constructor for class net.pterodactylus.util.xml.SimpleXML
Constructs a new XML node without a name.
SimpleXML(String) - Constructor for class net.pterodactylus.util.xml.SimpleXML
Constructs a new XML node with the specified name.
SimpleXML(String, String, String) - Constructor for class net.pterodactylus.util.xml.SimpleXML
Constructs a new XML node with the specified name and a single attribute.
SimpleXML(String, String[], String[]) - Constructor for class net.pterodactylus.util.xml.SimpleXML
Constructs a new XML node with the specified name and attributes.
size() - Method in interface net.pterodactylus.util.cache.Cache
Returns the number of currently cached values.
size() - Method in class net.pterodactylus.util.cache.MemoryCache
 
size() - Method in class net.pterodactylus.util.collection.ArrayMap
size() - Method in class net.pterodactylus.util.collection.Container
Returns the number of elements stored in this container.
size() - Method in class net.pterodactylus.util.collection.TimedMap
size() - Method in interface net.pterodactylus.util.data.Node
Returns the number of children this node has.
size() - Method in class net.pterodactylus.util.storage.Storage
Returns the number of storables in this storage.
size() - Method in class net.pterodactylus.util.swing.ListModelList
size() - Method in class net.pterodactylus.util.swing.SortedListModel
skip(long) - Method in class net.pterodactylus.util.io.LimitedInputStream
 
skipBits(int) - Method in class net.pterodactylus.util.io.BitShiftedInputStream
Skips the specified number of bits.
sleep() - Method in class net.pterodactylus.util.service.AbstractService
sleep(long) - Method in class net.pterodactylus.util.service.AbstractService
Sleeps until AbstractService.syncObject gets Object.notify()'ed or the specified timeout (in milliseconds) has elapsed.
sort() - Method in class net.pterodactylus.util.collection.Container
Returns a container that contains all elements of this container sorted by their natural order.
sort(Comparator<? super T>) - Method in class net.pterodactylus.util.collection.Container
Returns a container that contains all elements of this container sorted using the given comparator.
sort() - Method in class net.pterodactylus.util.collection.ListBuilder
Sorts the current list contents.
sort(Comparator<? super T>) - Method in class net.pterodactylus.util.collection.ListBuilder
Sorts the current list contents using the given comparator.
sort() - Method in class net.pterodactylus.util.swing.SortableTreeNode
Sorts the children of this node.
SortableTreeNode - Class in net.pterodactylus.util.swing
MutableTreeNode subclass that allows to sort its children.
SortableTreeNode(boolean) - Constructor for class net.pterodactylus.util.swing.SortableTreeNode
Creates a new sortable tree node.
SortableTreeNode(Object) - Constructor for class net.pterodactylus.util.swing.SortableTreeNode
Creates a new sortable tree node that contains the given user-defined object.
SortableTreeNode(Object, boolean) - Constructor for class net.pterodactylus.util.swing.SortableTreeNode
Creates a new sortable tree node that contains the given user-defined object.
sortChildren() - Method in interface net.pterodactylus.util.data.Node
Sorts all children according to their natural order.
sortChildren(Comparator<Node<E>>) - Method in interface net.pterodactylus.util.data.Node
Sorts all children with the given comparator.
SortedListModel<T extends Comparable<T>> - Class in net.pterodactylus.util.swing
 
SortedListModel() - Constructor for class net.pterodactylus.util.swing.SortedListModel
 
Source(String, String, Locale, ClassLoader) - Constructor for class net.pterodactylus.util.i18n.I18n.Source
Creates a new l10n source.
SOURCE_PATH_OPTION - Static variable in class net.pterodactylus.util.template.FilesystemTemplateProvider
Name of template context option for the source path.
start() - Method in class net.pterodactylus.util.service.AbstractService
Attempts to start this service.
start() - Method in interface net.pterodactylus.util.service.Service
Starts the service.
start() - Method in interface net.pterodactylus.util.service.ServiceMBean
Starts the service.
starting - Static variable in class net.pterodactylus.util.service.State
Basic State for services that are starting.
State - Class in net.pterodactylus.util.service
 
State(State, String) - Constructor for class net.pterodactylus.util.service.State
Constructs a new state that is derived from the given basic state and has the given name.
StaticPage<REQ extends Request> - Class in net.pterodactylus.util.web
Page implementation that delivers static files from the class path.
StaticPage(String, String, String) - Constructor for class net.pterodactylus.util.web.StaticPage
Creates a new CSS page.
StaticPage(Class<?>, String, String, String) - Constructor for class net.pterodactylus.util.web.StaticPage
 
StatusBar - Class in net.pterodactylus.util.swing
Status bar component that can be added to the BorderLayout.SOUTH area of a JFrame’s content pane.
StatusBar() - Constructor for class net.pterodactylus.util.swing.StatusBar
Creates a new status bar.
stop() - Method in class net.pterodactylus.util.service.AbstractService
Stops this service.
stop() - Method in interface net.pterodactylus.util.service.Service
Stops the service.
stop() - Method in interface net.pterodactylus.util.service.ServiceMBean
Stops the service.
stop() - Method in class net.pterodactylus.util.thread.Ticker
Stops the ticker.
StoppableDelay - Class in net.pterodactylus.util.thread
Runs a runnable after a certain time of a potentially longer-running operation has elapsed, until said operation is finished.
StoppableDelay(Runnable, Runnable) - Constructor for class net.pterodactylus.util.thread.StoppableDelay
Creates a new delay that runs the given runnable after 500 milliseconds.
StoppableDelay(Runnable, Runnable, long) - Constructor for class net.pterodactylus.util.thread.StoppableDelay
Creates a new delay that runs the given runnable after the given number of milliseconds.
stopping - Static variable in class net.pterodactylus.util.service.State
Basic state for services that are stopping.
Storable - Interface in net.pterodactylus.util.storage
Interface for objects that can write themselves to a byte array.
Storable.Utils - Class in net.pterodactylus.util.storage
Helper methods for populating and parsing byte arrays.
Storage<T extends Storable> - Class in net.pterodactylus.util.storage
Storage for Storables.
Storage(Factory<T>, File, String) - Constructor for class net.pterodactylus.util.storage.Storage
Creates a new storage with a default block size of 512 bytes.
Storage(int, Factory<T>, File, String) - Constructor for class net.pterodactylus.util.storage.Storage
Creates a new storage.
StorageException - Exception in net.pterodactylus.util.storage
Exception that signals in a Storage.
StorageException() - Constructor for exception net.pterodactylus.util.storage.StorageException
Creates a new storage exception.
StorageException(String) - Constructor for exception net.pterodactylus.util.storage.StorageException
Creates a new storage exception.
StorageException(Throwable) - Constructor for exception net.pterodactylus.util.storage.StorageException
Creates a new storage exception.
StorageException(String, Throwable) - Constructor for exception net.pterodactylus.util.storage.StorageException
Creates a new storage exception.
StoreFilter - Class in net.pterodactylus.util.template
Filter that stores the output of the chain in the TemplateContext.
StoreFilter() - Constructor for class net.pterodactylus.util.template.StoreFilter
 
StreamCopier - Class in net.pterodactylus.util.io
Helper class that copies bytes from an InputStream to an OutputStream.
StreamCopier() - Constructor for class net.pterodactylus.util.io.StreamCopier
 
StreamCopier.ProgressListener - Interface in net.pterodactylus.util.io
Interface for objects that want to be notified about the progress of a StreamCopier.copy(InputStream, OutputStream, ProgressListener) operation.
StreamReader - Class in net.pterodactylus.util.io
Helper methods that read certain numbers of bytes from an InputStream and throw an EOFException if the input stream is depleted before the requested number of bytes is read.
StreamReader() - Constructor for class net.pterodactylus.util.io.StreamReader
 
STRING_CREATOR - Static variable in interface net.pterodactylus.util.database.ObjectCreator
A default string creator.
StringCreator() - Constructor for class net.pterodactylus.util.database.ObjectCreator.StringCreator
Creates a new object creator that returns the value of the result set’s first column as a String.
StringCreator(int) - Constructor for class net.pterodactylus.util.database.ObjectCreator.StringCreator
Creates a new object creator that returns the value of the result set’s given column as a String.
StringCreator(String) - Constructor for class net.pterodactylus.util.database.ObjectCreator.StringCreator
Creates a new object creator that returns the value of the column with the given name as a String.
StringEscaper - Class in net.pterodactylus.util.text
Contains different methods to escape strings, e.g. for storage in a text-based medium like databases or an XML file.
StringEscaper() - Constructor for class net.pterodactylus.util.text.StringEscaper
 
StringParameter(String) - Constructor for class net.pterodactylus.util.database.Parameter.StringParameter
Creates a new parameter.
StringValue - Class in net.pterodactylus.util.config
A wrapper around a string value.
StringValue(Configuration, String) - Constructor for class net.pterodactylus.util.config.StringValue
Creates a new string value that updates its value to the given attribute from the given configuration.
SubClassValidator - Class in net.pterodactylus.util.validation
Validator implementation that validates that an object‘s class is assignable from a given class, i.e. that its class is the given class or a subclass of it.
SubClassValidator(Class<?>) - Constructor for class net.pterodactylus.util.validation.SubClassValidator
Creates a new subclass validator.
subList(int, int) - Method in class net.pterodactylus.util.swing.ListModelList
subList(int, int) - Method in class net.pterodactylus.util.swing.SortedListModel
SwingUtils - Class in net.pterodactylus.util.swing
Collection of Swing-related helper methods.
SwingUtils() - Constructor for class net.pterodactylus.util.swing.SwingUtils
 
syncObject - Variable in class net.pterodactylus.util.service.AbstractService
Object used for synchronization.

T

TeeOutputStream - Class in net.pterodactylus.util.io
OutputStream that sends all data it receives to multiple other output streams.
TeeOutputStream(OutputStream...) - Constructor for class net.pterodactylus.util.io.TeeOutputStream
Creates a new tee output stream that sends all to all given output streams.
TelnetControl - Class in net.pterodactylus.util.telnet
TODO
TelnetControl() - Constructor for class net.pterodactylus.util.telnet.TelnetControl
Creates a new telnet control.
Template - Class in net.pterodactylus.util.template
Simple container that holds an initial TemplateContext that can be used to store filters, accessors, plugins, providers, and template objects that are used for all render passes of this template.
Template() - Constructor for class net.pterodactylus.util.template.Template
Creates a new template.
TEMPLATE_CONTEXT_PROVIDER - Static variable in interface net.pterodactylus.util.template.TemplateProvider
TemplateProvider that gets a Template from the TemplateContext.
TemplateContext - Class in net.pterodactylus.util.template
A template context bundles together all providers of information that are necessary to render a template.
TemplateContext() - Constructor for class net.pterodactylus.util.template.TemplateContext
Creates a new template context.
TemplateContext(TemplateContext) - Constructor for class net.pterodactylus.util.template.TemplateContext
Creates a new template context with the given parent context.
TemplateContext(TemplateContext, boolean) - Constructor for class net.pterodactylus.util.template.TemplateContext
Creates a new template context with the given parent context.
TemplateContextFactory - Class in net.pterodactylus.util.template
Default TemplateContext factory implementation that creates TemplateContexts with Accessors, Filters, Plugins, TemplateProviders, and arbitrary objects that are set on all created TemplateContexts.
TemplateContextFactory() - Constructor for class net.pterodactylus.util.template.TemplateContextFactory
 
TemplateContextProvider - Class in net.pterodactylus.util.template
TemplateProvider implementation that returns a Template from a TemplateContext.
TemplateContextProvider() - Constructor for class net.pterodactylus.util.template.TemplateContextProvider
 
TemplateException - Exception in net.pterodactylus.util.template
Exception that is thrown when a Template can not be rendered because its input can not be parsed correctly, or when its template variables can not be parsed or evaluated.
TemplateException() - Constructor for exception net.pterodactylus.util.template.TemplateException
Creates a new template exception.
TemplateException(int, int) - Constructor for exception net.pterodactylus.util.template.TemplateException
Creates a new template exception.
TemplateException(String) - Constructor for exception net.pterodactylus.util.template.TemplateException
Creates a new template exception.
TemplateException(int, int, String) - Constructor for exception net.pterodactylus.util.template.TemplateException
Creates a new template exception.
TemplateException(Throwable) - Constructor for exception net.pterodactylus.util.template.TemplateException
Creates a new template exception.
TemplateException(int, int, Throwable) - Constructor for exception net.pterodactylus.util.template.TemplateException
Creates a new template exception.
TemplateException(String, Throwable) - Constructor for exception net.pterodactylus.util.template.TemplateException
Creates a new template exception.
TemplateException(int, int, String, Throwable) - Constructor for exception net.pterodactylus.util.template.TemplateException
Creates a new template exception.
TemplateNotification - Class in net.pterodactylus.util.notify
Template-based implementation of a Notification.
TemplateNotification(Template) - Constructor for class net.pterodactylus.util.notify.TemplateNotification
Creates a new notification.
TemplateNotification(String, Template) - Constructor for class net.pterodactylus.util.notify.TemplateNotification
Creates a new notification.
TemplateNotification(String, long, long, boolean, Template) - Constructor for class net.pterodactylus.util.notify.TemplateNotification
Creates a new notification.
TemplatePage<REQ extends Request> - Class in net.pterodactylus.util.web
A template page is a single page that is created from a Template but does not necessarily return HTML.
TemplatePage(String, String, TemplateContextFactory, Template) - Constructor for class net.pterodactylus.util.web.TemplatePage
Creates a new template page.
TemplateParser - Class in net.pterodactylus.util.template
Parser for Templates.
TemplateParser() - Constructor for class net.pterodactylus.util.template.TemplateParser
 
TemplateParser.FilterDefinition - Class in net.pterodactylus.util.template
Wrapper for the name of a Filter and its parameters.
TemplateParser.Filters - Class in net.pterodactylus.util.template
Convenience class that wraps around a List of TemplateParser.FilterDefinitions and can filter an object through all the filters it contains.
TemplatePart - Class in net.pterodactylus.util.template
A Part that includes a complete Template.
TemplatePart(int, int, String, Map<String, String>) - Constructor for class net.pterodactylus.util.template.TemplatePart
Creates a new template part.
TemplateProvider - Interface in net.pterodactylus.util.template
A provider is used to load templates that are included in other templates when rendering a template.
TemporaryInputStream - Class in net.pterodactylus.util.io
An input stream implementation that copies a given input stream to a temporary file and delivers the content of the temporary file at a later time.
TemporaryInputStream(InputStream) - Constructor for class net.pterodactylus.util.io.TemporaryInputStream
Creates a new temporary input stream.
TextException - Exception in net.pterodactylus.util.text
Exception that signals an error when processing texts.
TextException() - Constructor for exception net.pterodactylus.util.text.TextException
Creates a new text exception.
TextException(String) - Constructor for exception net.pterodactylus.util.text.TextException
Creates a new text exception with the given message.
TextException(Throwable) - Constructor for exception net.pterodactylus.util.text.TextException
Creates a new text exception with the given cause.
TextException(String, Throwable) - Constructor for exception net.pterodactylus.util.text.TextException
Creates a new text exception with the given message and cause.
Theme - Interface in net.pterodactylus.util.template
A theme bundles an arbitrary amount of Templates together and can perform additional processing around it.
ThemeSelector<C extends ThemeSelectorContext> - Interface in net.pterodactylus.util.template
Selects themes based on a context.
ThemeSelectorContext - Class in net.pterodactylus.util.template
Marker interface for ThemeSelector contexts.
ThemeSelectorContext() - Constructor for class net.pterodactylus.util.template.ThemeSelectorContext
 
Ticker - Class in net.pterodactylus.util.thread
Executes threads at specified times in the future.
Ticker() - Constructor for class net.pterodactylus.util.thread.Ticker
Creates a new ticker with a default thread factory (which uses DumpingThreads).
Ticker(ThreadFactory) - Constructor for class net.pterodactylus.util.thread.Ticker
Creates a new ticker that uses the given thread factory to create new threads.
TimedMap<K,V> - Class in net.pterodactylus.util.collection
Map implementation that forgets its entries after a specified time.
TimedMap() - Constructor for class net.pterodactylus.util.collection.TimedMap
Creates a new timed map with a default maximum age of 60 seconds.
TimedMap(long) - Constructor for class net.pterodactylus.util.collection.TimedMap
Creates a new timed map.
TimedMap(Map<K, V>) - Constructor for class net.pterodactylus.util.collection.TimedMap
Creates a new timed map with a default maximum age of 60 seconds, copying the given map.
TimedMap(long, Map<K, V>) - Constructor for class net.pterodactylus.util.collection.TimedMap
Creates a new timed map, copying the given map.
TimedMemoryItemCache<T> - Class in net.pterodactylus.util.cache
A timed memory item cache is an ItemCache implementation that stores the item only for a certain time.
TimedMemoryItemCache(ItemValueRetriever<T>, long) - Constructor for class net.pterodactylus.util.cache.TimedMemoryItemCache
Creates a new timed memory item cache.
toArray() - Method in class net.pterodactylus.util.swing.ListModelList
toArray(T[]) - Method in class net.pterodactylus.util.swing.ListModelList
toArray() - Method in class net.pterodactylus.util.swing.SortedListModel
toArray(U[]) - Method in class net.pterodactylus.util.swing.SortedListModel
toByte(String) - Static method in class net.pterodactylus.util.number.Hex
Decodes a hexadecimal string into a byte array.
toHex(String) - Static method in class net.pterodactylus.util.number.Hex
Converts the given string to a hexadecimal string.
toHex(byte[]) - Static method in class net.pterodactylus.util.number.Hex
Converts the given buffer to a hexadecimal string.
toHex(byte[], int, int) - Static method in class net.pterodactylus.util.number.Hex
Converts length bytes of the given buffer starting at index start to a hexadecimal string.
toHex(String, boolean) - Static method in class net.pterodactylus.util.number.Hex
Converts the given string to a hexadecimal string, using upper-case characters for the digits ‘a’ to ‘f’, if desired.
toHex(byte[], boolean) - Static method in class net.pterodactylus.util.number.Hex
Converts the given buffer to a hexadecimal string, using upper-case characters for the digits ‘a’ to ‘f’, if desired.
toHex(byte[], int, int, boolean) - Static method in class net.pterodactylus.util.number.Hex
Converts length bytes of the given buffer starting at index start to a hexadecimal string, using upper-case characters for the digits ‘a’ to ‘f’, if desired.
toHex(byte) - Static method in class net.pterodactylus.util.number.Hex
Formats the given byte as a 2-digit hexadecimal value.
toHex(short) - Static method in class net.pterodactylus.util.number.Hex
Formats the given shoirt as a 4-digit hexadecimal value.
toHex(int) - Static method in class net.pterodactylus.util.number.Hex
Formats the given int as a 8-digit hexadecimal value.
toHex(long) - Static method in class net.pterodactylus.util.number.Hex
Formats the given int as a 16-digit hexadecimal value.
toHex(long, int) - Static method in class net.pterodactylus.util.number.Hex
Formats the given value with as a hexadecimal number with at least the specified number of digits.
ToolTipList - Class in net.pterodactylus.util.swing
Extension of JList that retrieves the tool tip text to display from the cell renderer.
ToolTipList(ListModel) - Constructor for class net.pterodactylus.util.swing.ToolTipList
Creates a new tool tip list.
toString() - Method in class net.pterodactylus.util.cmdline.Option
 
toString() - Method in class net.pterodactylus.util.collection.Pair
 
toString() - Method in class net.pterodactylus.util.collection.Triplet
 
toString() - Method in class net.pterodactylus.util.service.AbstractService
toString() - Method in class net.pterodactylus.util.service.State
Returns a textual representation of this state, consisting of the name of this state and, if different, the name of its basic state.
toString() - Method in class net.pterodactylus.util.storage.Allocation
toString() - Method in class net.pterodactylus.util.swing.SortableTreeNode
toString() - Method in class net.pterodactylus.util.text.FormattedMessage
toString() - Method in class net.pterodactylus.util.time.Duration
toString(boolean) - Method in class net.pterodactylus.util.time.Duration
Returns a textual representation of this duration.
toString() - Method in class net.pterodactylus.util.validation.AndValidator
toString() - Method in class net.pterodactylus.util.validation.DoubleRangeValidator
toString() - Method in class net.pterodactylus.util.validation.EqualityValidator
toString() - Method in class net.pterodactylus.util.validation.IdentityValidator
toString() - Method in class net.pterodactylus.util.validation.IntegerRangeValidator
toString() - Method in class net.pterodactylus.util.validation.LongRangeValidator
toString() - Method in class net.pterodactylus.util.validation.NotNullValidator
toString() - Method in class net.pterodactylus.util.validation.NotValidator
toString() - Method in class net.pterodactylus.util.validation.OrValidator
toString() - Method in class net.pterodactylus.util.validation.SubClassValidator
toString() - Method in class net.pterodactylus.util.version.Version
 
touch() - Method in class net.pterodactylus.util.notify.AbstractNotification
Updates the last update time to the current time.
transformToByteArray(Document) - Static method in class net.pterodactylus.util.xml.XML
Transforms the DOM XML document into a byte array.
transformToDocument(byte[]) - Static method in class net.pterodactylus.util.xml.XML
Transforms the byte array into a DOM XML document.
transformToDocument(InputStream) - Static method in class net.pterodactylus.util.xml.XML
Transforms the input stream into a DOM XML document.
transformToDocument(Reader) - Static method in class net.pterodactylus.util.xml.XML
Transforms the reader into a DOM XML document.
transformToDocument(InputSource) - Static method in class net.pterodactylus.util.xml.XML
Transforms the inout source into a DOM XML document.
Tree<E extends Comparable<E>> - Class in net.pterodactylus.util.data
A tree structure in which every node can have an arbitrary amount of children.
Tree() - Constructor for class net.pterodactylus.util.data.Tree
 
Triplet<T,U,V> - Class in net.pterodactylus.util.collection
3-tuple.
Triplet(T, U, V) - Constructor for class net.pterodactylus.util.collection.Triplet
Creates a new triplet.
TypeSafe - Class in net.pterodactylus.util.collection
Helper methods to simplify handling of unknown types when handling generics.
TypeSafe() - Constructor for class net.pterodactylus.util.collection.TypeSafe
 

U

unescapeString(String) - Static method in class net.pterodactylus.util.text.SimpleStringEscaper
Unescapes the given string, reversing the effects of SimpleStringEscaper.escapeString(String).
unknown - Static variable in class net.pterodactylus.util.service.State
Basic static for services in an unknown state.
unpersistString(String) - Static method in class net.pterodactylus.util.text.StringEscaper
Recovers the original string from a string that has been created with StringEscaper.persistString(String).
unwrap(Class<T>) - Method in class net.pterodactylus.util.database.PooledDataSource
 
unwrap(Class<T>) - Method in class net.pterodactylus.util.database.URLDataSource
update(Query) - Method in class net.pterodactylus.util.database.AbstractDatabase
 
update(Query) - Method in interface net.pterodactylus.util.database.Database
Updates objects in the database.
updateI18n() - Method in class net.pterodactylus.util.i18n.gui.I18nAction
Notifies the object that the language in I18n was changed.
updateI18n() - Method in class net.pterodactylus.util.i18n.gui.I18nLabel
Notifies the object that the language in I18n was changed.
updateI18n() - Method in class net.pterodactylus.util.i18n.gui.I18nMenu
Notifies the object that the language in I18n was changed.
updateI18n() - Method in class net.pterodactylus.util.i18n.gui.I18nMenuItem
Notifies the object that the language in I18n was changed.
updateI18n() - Method in interface net.pterodactylus.util.i18n.I18nable
Notifies the object that the language in I18n was changed.
UptimeCommand - Class in net.pterodactylus.util.telnet
Command that prints out the current uptime.
UptimeCommand() - Constructor for class net.pterodactylus.util.telnet.UptimeCommand
Creates a new uptime command.
URLDataSource - Class in net.pterodactylus.util.database
DataSource implementation that creates connections from a JDBC URL using DriverManager.getConnection(String).
URLDataSource(String) - Constructor for class net.pterodactylus.util.database.URLDataSource
Creates a URL data source.
useMessageFormat(boolean) - Method in class net.pterodactylus.util.i18n.I18n
Sets whether to use MessageFormat for formatting values with parameters.
Utils() - Constructor for class net.pterodactylus.util.storage.Storable.Utils
 

V

validate(T) - Method in class net.pterodactylus.util.validation.AndValidator
Validates the given object.
validate(Double) - Method in class net.pterodactylus.util.validation.DoubleRangeValidator
Validates the given object.
validate(T) - Method in class net.pterodactylus.util.validation.EqualityValidator
Validates the given object.
validate(T) - Method in class net.pterodactylus.util.validation.IdentityValidator
Validates the given object.
validate(Integer) - Method in class net.pterodactylus.util.validation.IntegerRangeValidator
Validates the given object.
validate(Long) - Method in class net.pterodactylus.util.validation.LongRangeValidator
Validates the given object.
validate(T) - Method in class net.pterodactylus.util.validation.NotNullValidator
Validates the given object.
validate(T) - Method in class net.pterodactylus.util.validation.NotValidator
Validates the given object.
validate(T) - Method in class net.pterodactylus.util.validation.OrValidator
Validates the given object.
validate(Object) - Method in class net.pterodactylus.util.validation.SubClassValidator
Validates the given object.
validate(T) - Method in interface net.pterodactylus.util.validation.Validator
Validates the given object.
Validation - Class in net.pterodactylus.util.validation
Helps with parameter validation.
Validator<T> - Interface in net.pterodactylus.util.validation
Interface for objects that can validate other objects.
ValidatorContainer<T> - Class in net.pterodactylus.util.validation
Abstract base class for Validator implementation that can contain one or more other Validators.
ValidatorContainer() - Constructor for class net.pterodactylus.util.validation.ValidatorContainer
Creates a new validator container.
ValidatorContainer(Validator<T>...) - Constructor for class net.pterodactylus.util.validation.ValidatorContainer
Creates a new validator container.
Value<T> - Interface in net.pterodactylus.util.config
Wrapper for a configuration value.
value - Variable in class net.pterodactylus.util.database.Parameter
The value of the parameter.
ValueField - Class in net.pterodactylus.util.database
A value field stores its name and its value.
ValueField(String, Parameter<?>) - Constructor for class net.pterodactylus.util.database.ValueField
Creates a new value field.
ValueFieldWhereClause - Class in net.pterodactylus.util.database
A WHERE clause that requires a field to match a value.
ValueFieldWhereClause(ValueField) - Constructor for class net.pterodactylus.util.database.ValueFieldWhereClause
Creates a new WHERE clause that checks a field for the given value.
ValueFieldWhereClause(ValueField, boolean) - Constructor for class net.pterodactylus.util.database.ValueFieldWhereClause
Creates a new WHERE clause that checks a field for the given value.
ValueFormatException - Exception in net.pterodactylus.util.config
Exception that signals a conversion error if a specified format for a value is requested.
ValueFormatException() - Constructor for exception net.pterodactylus.util.config.ValueFormatException
Constructs a new value format exception.
ValueFormatException(String) - Constructor for exception net.pterodactylus.util.config.ValueFormatException
Constructs a new value format exception with the given message.
ValueFormatException(Throwable) - Constructor for exception net.pterodactylus.util.config.ValueFormatException
Constructs a new value format exception with the given cause.
ValueFormatException(String, Throwable) - Constructor for exception net.pterodactylus.util.config.ValueFormatException
Constructs a new value format exception with the given message and cause.
valueOf(String) - Static method in enum net.pterodactylus.util.database.Join.JoinType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum net.pterodactylus.util.database.OrderField.Order
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum net.pterodactylus.util.database.Query.Type
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum net.pterodactylus.util.web.Method
Returns the enum constant of this type with the specified name.
ValueRetriever<K,V> - Interface in net.pterodactylus.util.cache
Interface for objects that can fill a Cache from arbitrary sources.
values() - Method in class net.pterodactylus.util.collection.ArrayMap
values() - Method in class net.pterodactylus.util.collection.TimedMap
values() - Static method in enum net.pterodactylus.util.database.Join.JoinType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum net.pterodactylus.util.database.OrderField.Order
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum net.pterodactylus.util.database.Query.Type
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum net.pterodactylus.util.web.Method
Returns an array containing the constants of this enum type, in the order they are declared.
valueSize - Variable in class net.pterodactylus.util.io.BitShiftedInputStream
The number of bits per value.
Version - Class in net.pterodactylus.util.version
Version number container.
Version(int...) - Constructor for class net.pterodactylus.util.version.Version
Creates a new version with the given numbers.
Version(String, int...) - Constructor for class net.pterodactylus.util.version.Version
Creates a new version with the given numbers.
VersionCommand - Class in net.pterodactylus.util.telnet
Replies with the name of the application and the version number.
VersionCommand(String, String) - Constructor for class net.pterodactylus.util.telnet.VersionCommand
Creates a new version command.

W

WhereClause - Interface in net.pterodactylus.util.database
Interface for a WHERE clause that can be used to specify criteria for matching DataObjects.
WhitespaceRemover - Interface in net.pterodactylus.util.template
Removes whitespace from non-template tag parts of a Template.
WhitespaceRemover.NoWhitespaceRemover - Class in net.pterodactylus.util.template
WhitespaceRemover implementation that does not actually remove any whitespace.
wrap(Iterable<T>) - Static method in class net.pterodactylus.util.collection.IterableWrapper
Convenience method that creates a new IterableWrapper around the given iterable.
wrap(Iterator<T>) - Static method in class net.pterodactylus.util.collection.IteratorWrapper
Convenience method that creates a new IteratorWrapper around the given iterator.
WritableCache<K,V> - Interface in net.pterodactylus.util.cache
Interface for caches that can not only retrieve values from a ValueRetriever but can also store arbitrary key-value pairs.
write(Writer, Map<String, String>) - Static method in class net.pterodactylus.util.collection.MapWriter
Writes the given map to the given writer.
write(int) - Method in class net.pterodactylus.util.io.BitShiftedOutputStream
write(int) - Method in class net.pterodactylus.util.io.NullOutputStream
write(byte[]) - Method in class net.pterodactylus.util.io.NullOutputStream
write(byte[], int, int) - Method in class net.pterodactylus.util.io.NullOutputStream
write(int) - Method in class net.pterodactylus.util.io.TeeOutputStream
write(byte[]) - Method in class net.pterodactylus.util.io.TeeOutputStream
write(byte[], int, int) - Method in class net.pterodactylus.util.io.TeeOutputStream
write(String) - Method in class net.pterodactylus.util.web.Response
Writes the text to this response’s content output stream.
write(byte[]) - Method in class net.pterodactylus.util.web.Response
Writes the given data to this response’s content output stream.
writePadding(int) - Method in class net.pterodactylus.util.io.BitShiftedOutputStream
Writes the specified number of zero-bits to this stream.
writePadding(int, int) - Method in class net.pterodactylus.util.io.BitShiftedOutputStream
Writes the specified number of bits to the stream.
writeToOutputStream(Document, Writer) - Static method in class net.pterodactylus.util.xml.XML
Writes the given document to the given writer.
writeToOutputStream(Document, Writer, boolean) - Static method in class net.pterodactylus.util.xml.XML
Writes the given document to the given writer.

X

XML - Class in net.pterodactylus.util.xml
Contains method to transform DOM XML trees to byte arrays and vice versa.
XML() - Constructor for class net.pterodactylus.util.xml.XML
 
XMLConfigurationBackend - Class in net.pterodactylus.util.config
Configuration backend that reads and writes its configuration from/to an XML file.
XMLConfigurationBackend(File) - Constructor for class net.pterodactylus.util.config.XMLConfigurationBackend
Creates a new backend backed by the given file.
XMLConfigurationBackend(File, boolean) - Constructor for class net.pterodactylus.util.config.XMLConfigurationBackend
Creates a new backend backed by the given file.
XmlFilter - Class in net.pterodactylus.util.template
Filters XML by replacing double quotes characters, apostrophes, the less-than character, the greater-than characters, and the ampersand by their respective XML entities.
XmlFilter() - Constructor for class net.pterodactylus.util.template.XmlFilter
 
A B C D E F G H I J K L M N O P Q R S T U V W X 
Skip navigation links

Copyright © 2026. All rights reserved.