OCPsoft Common API 1.0.5.Final
A C E F G H I J L N O P R S T U W

A

areEqual(String, String) - Static method in class org.ocpsoft.common.util.Strings
Return true if the given String instances are equal, or if both String instances are null.
areEqualTrimmed(String, String) - Static method in class org.ocpsoft.common.util.Strings
Return true if the given String instances are equal when outer whitespace is removed, or if both String instances are null.
asList(Iterable<T>) - Static method in class org.ocpsoft.common.util.Iterators
Return the elements of the given Iterable as a List.
asList(Iterator<T>) - Static method in class org.ocpsoft.common.util.Iterators
Return the elements of the given Iterator as a List.
Assert - Class in org.ocpsoft.common.util
Utility methods for making precondition/postcondition assertions.
assertFalse(boolean, String) - Static method in class org.ocpsoft.common.util.Assert
Throw an exception if the given value is not false.
assertTrue(boolean, String) - Static method in class org.ocpsoft.common.util.Assert
Throw an exception if the given value is not true.
asSet(Iterable<T>) - Static method in class org.ocpsoft.common.util.Iterators
Return the elements of the given Iterable as a List.
asSet(Iterator<T>) - Static method in class org.ocpsoft.common.util.Iterators
Return the elements of the given Iterator as a List.

C

capitalize(String) - Static method in class org.ocpsoft.common.util.Strings
Capitalize the given String: "input" -> "Input"
closeQuietly(Closeable) - Static method in class org.ocpsoft.common.util.Streams
Close the given Closeable without throwing exceptions on failure.
compare(Weighted, Weighted) - Method in class org.ocpsoft.common.pattern.WeightedComparator
 
copy(InputStream, OutputStream) - Static method in class org.ocpsoft.common.util.Streams
Copy all contents from the InputStream to the OutputStream, using a buffer of size 2048.
copy(InputStream, OutputStream, int) - Static method in class org.ocpsoft.common.util.Streams
Copy all contents from the InputStream to the OutputStream, using a buffer of the given size.

E

enrich(T) - Method in interface org.ocpsoft.common.spi.ServiceEnricher
Enrich an instantiated instance of the given service type.

F

fromString(String) - Static method in class org.ocpsoft.common.util.Streams
Create an InputStream from the given String.

G

getServices(Class<T>) - Method in interface org.ocpsoft.common.services.ServiceProvider
 

H

handles(T) - Method in interface org.ocpsoft.common.pattern.Specialized
Returns true if this object is appropriate for the given payload.

I

isNull(Object, String) - Static method in class org.ocpsoft.common.util.Assert
Throw an exception if the given Object is not null.
isNullOrEmpty(String) - Static method in class org.ocpsoft.common.util.Strings
Return true if the given String is null or is empty.
isTrue(String) - Static method in class org.ocpsoft.common.util.Strings
Return true if the given String equals "true", case insensitive; otherwise return false.
iterator() - Method in class org.ocpsoft.common.services.ServiceLoader
Lazily loads the available providers of this loader's service.
Iterators - Class in org.ocpsoft.common.util
Utility methods for working with Iterator and Iterable instances.
Iterators() - Constructor for class org.ocpsoft.common.util.Iterators
 

J

join(Collection<?>, String) - Static method in class org.ocpsoft.common.util.Strings
Join a Collection of String instances using the given delimiter.

L

load(Class<S>) - Static method in class org.ocpsoft.common.services.ServiceLoader
Creates a new service loader for the given service type, using the current thread's context class loader.
load(Class<S>, ClassLoader) - Static method in class org.ocpsoft.common.services.ServiceLoader
Creates a new service loader for the given service type and class loader.
loadEnriched(Class<T>) - Static method in class org.ocpsoft.common.services.ServiceLoader
Obtain a Class instance and attempt enrichment using any provided ServiceEnricher classes.
loadTypesafe(Class<S>) - Static method in class org.ocpsoft.common.services.ServiceLoader
Creates a new service loader for the given service type, using the current thread's context class loader.
locate(Class<T>) - Method in interface org.ocpsoft.common.spi.ServiceLocator
Locate additional class types of which can be produced by this ServiceLocator.

N

NonEnriching - Interface in org.ocpsoft.common.services
Marker interface declaring that a particular service implementation will not be enriched when loaded via ServiceLoader
notNull(Object, String) - Static method in class org.ocpsoft.common.util.Assert
Throw an exception if the given Object is null.

O

org.ocpsoft.common.pattern - package org.ocpsoft.common.pattern
 
org.ocpsoft.common.services - package org.ocpsoft.common.services
 
org.ocpsoft.common.spi - package org.ocpsoft.common.spi
 
org.ocpsoft.common.util - package org.ocpsoft.common.util
 

P

priority() - Method in interface org.ocpsoft.common.pattern.Weighted
 
produce(Class<T>) - Method in interface org.ocpsoft.common.spi.ServiceEnricher
Produce a Collection of enriched services of the given type.

R

reload() - Method in class org.ocpsoft.common.services.ServiceLoader
Clear this loader's provider cache so that all providers will be reloaded.

S

ServiceEnricher - Interface in org.ocpsoft.common.spi
Provides enriching for services loaded with ServiceLoader
ServiceLoader<S> - Class in org.ocpsoft.common.services
This class handles looking up service providers on the class path.
ServiceLocator - Interface in org.ocpsoft.common.spi
Locates additional service implementation classes to be instantiated by the ServiceLoader
ServiceProvider - Interface in org.ocpsoft.common.services
Used to provide provide pre-enriched services to the ServiceLoader as an alternate method of
Specialized<T> - Interface in org.ocpsoft.common.pattern
 
Streams - Class in org.ocpsoft.common.util
Utility methods for working with InputStream and OutputStream instances.
Streams() - Constructor for class org.ocpsoft.common.util.Streams
 
Strings - Class in org.ocpsoft.common.util
Utility methods for manipulating String instances
Strings() - Constructor for class org.ocpsoft.common.util.Strings
 

T

toString() - Method in class org.ocpsoft.common.services.ServiceLoader
Returns a string describing this service.
toString(InputStream) - Static method in class org.ocpsoft.common.util.Streams
Return a String containing the contents of the given InputStream

U

uncapitalize(String) - Static method in class org.ocpsoft.common.util.Strings
Uncapitalize the given String.

W

Weighted - Interface in org.ocpsoft.common.pattern
Defines a class as having a weight for ordering.
WeightedComparator - Class in org.ocpsoft.common.pattern
Compares Weighted objects.
WeightedComparator() - Constructor for class org.ocpsoft.common.pattern.WeightedComparator
 

A C E F G H I J L N O P R S T U W
OCPsoft Common API 1.0.5.Final

Copyright © 2012 OCPsoft. All Rights Reserved.