Tabnine Logo
PredicatedSortedSet.decorate
Code IndexAdd Tabnine to your IDE (free)

How to use
decorate
method
in
org.apache.commons.collections.set.PredicatedSortedSet

Best Java code snippets using org.apache.commons.collections.set.PredicatedSortedSet.decorate (Showing top 12 results out of 315)

origin: commons-collections/commons-collections

/**
 * Returns a predicated (validating) sorted set backed by the given sorted set.  
 * <p>
 * Only objects that pass the test in the given predicate can be added to the set.
 * Trying to add an invalid object results in an IllegalArgumentException.
 * It is important not to use the original set after invoking this method,
 * as it is a backdoor for adding invalid objects.
 *
 * @param set  the sorted set to predicate, must not be null
 * @param predicate  the predicate for the sorted set, must not be null
 * @return a predicated sorted set backed by the given sorted set
 * @throws IllegalArgumentException  if the Set or Predicate is null
 */
public static SortedSet predicatedSortedSet(SortedSet set, Predicate predicate) {
  return PredicatedSortedSet.decorate(set, predicate);
}
origin: wildfly/wildfly

/**
 * Returns a predicated (validating) sorted set backed by the given sorted set.  
 * <p>
 * Only objects that pass the test in the given predicate can be added to the set.
 * Trying to add an invalid object results in an IllegalArgumentException.
 * It is important not to use the original set after invoking this method,
 * as it is a backdoor for adding invalid objects.
 *
 * @param set  the sorted set to predicate, must not be null
 * @param predicate  the predicate for the sorted set, must not be null
 * @return a predicated sorted set backed by the given sorted set
 * @throws IllegalArgumentException  if the Set or Predicate is null
 */
public static SortedSet predicatedSortedSet(SortedSet set, Predicate predicate) {
  return PredicatedSortedSet.decorate(set, predicate);
}
origin: commons-collections/commons-collections

protected SortedSet makeTestSet() {
  return PredicatedSortedSet.decorate(new TreeSet(), testPredicate);
}

origin: commons-collections/commons-collections

public Set makeEmptySet() {
  return PredicatedSortedSet.decorate(new TreeSet(), truePredicate);
}

origin: commons-collections/commons-collections

public Set makeFullSet() {
  TreeSet set = new TreeSet();
  set.addAll(Arrays.asList(getFullElements()));
  return PredicatedSortedSet.decorate(set, truePredicate);
}
origin: com.alibaba.citrus.tool/antx-autoexpand

/**
 * Returns a predicated (validating) sorted set backed by the given sorted set.  
 * <p>
 * Only objects that pass the test in the given predicate can be added to the set.
 * Trying to add an invalid object results in an IllegalArgumentException.
 * It is important not to use the original set after invoking this method,
 * as it is a backdoor for adding invalid objects.
 *
 * @param set  the sorted set to predicate, must not be null
 * @param predicate  the predicate for the sorted set, must not be null
 * @return a predicated sorted set backed by the given sorted set
 * @throws IllegalArgumentException  if the Set or Predicate is null
 */
public static SortedSet predicatedSortedSet(SortedSet set, Predicate predicate) {
  return PredicatedSortedSet.decorate(set, predicate);
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-collections

/**
 * Returns a predicated (validating) sorted set backed by the given sorted set.  
 * <p>
 * Only objects that pass the test in the given predicate can be added to the set.
 * Trying to add an invalid object results in an IllegalArgumentException.
 * It is important not to use the original set after invoking this method,
 * as it is a backdoor for adding invalid objects.
 *
 * @param set  the sorted set to predicate, must not be null
 * @param predicate  the predicate for the sorted set, must not be null
 * @return a predicated sorted set backed by the given sorted set
 * @throws IllegalArgumentException  if the Set or Predicate is null
 */
public static SortedSet predicatedSortedSet(SortedSet set, Predicate predicate) {
  return PredicatedSortedSet.decorate(set, predicate);
}
origin: com.github.becausetesting/commons

/**
 * Returns a predicated (validating) sorted set backed by the given sorted set.  
 * <p>
 * Only objects that pass the test in the given predicate can be added to the set.
 * Trying to add an invalid object results in an IllegalArgumentException.
 * It is important not to use the original set after invoking this method,
 * as it is a backdoor for adding invalid objects.
 *
 * @param set  the sorted set to predicate, must not be null
 * @param predicate  the predicate for the sorted set, must not be null
 * @return a predicated sorted set backed by the given sorted set
 * @throws IllegalArgumentException  if the Set or Predicate is null
 */
public static SortedSet predicatedSortedSet(SortedSet set, Predicate predicate) {
  return PredicatedSortedSet.decorate(set, predicate);
}
origin: org.apache.openjpa/openjpa-all

/**
 * Returns a predicated (validating) sorted set backed by the given sorted set.  
 * <p>
 * Only objects that pass the test in the given predicate can be added to the set.
 * Trying to add an invalid object results in an IllegalArgumentException.
 * It is important not to use the original set after invoking this method,
 * as it is a backdoor for adding invalid objects.
 *
 * @param set  the sorted set to predicate, must not be null
 * @param predicate  the predicate for the sorted set, must not be null
 * @return a predicated sorted set backed by the given sorted set
 * @throws IllegalArgumentException  if the Set or Predicate is null
 */
public static SortedSet predicatedSortedSet(SortedSet set, Predicate predicate) {
  return PredicatedSortedSet.decorate(set, predicate);
}
origin: org.apache.directory.api/api-ldap-client-all

/**
 * Returns a predicated (validating) sorted set backed by the given sorted set.  
 * <p>
 * Only objects that pass the test in the given predicate can be added to the set.
 * Trying to add an invalid object results in an IllegalArgumentException.
 * It is important not to use the original set after invoking this method,
 * as it is a backdoor for adding invalid objects.
 *
 * @param set  the sorted set to predicate, must not be null
 * @param predicate  the predicate for the sorted set, must not be null
 * @return a predicated sorted set backed by the given sorted set
 * @throws IllegalArgumentException  if the Set or Predicate is null
 */
public static SortedSet predicatedSortedSet(SortedSet set, Predicate predicate) {
  return PredicatedSortedSet.decorate(set, predicate);
}
origin: org.jboss.eap/wildfly-client-all

/**
 * Returns a predicated (validating) sorted set backed by the given sorted set.  
 * <p>
 * Only objects that pass the test in the given predicate can be added to the set.
 * Trying to add an invalid object results in an IllegalArgumentException.
 * It is important not to use the original set after invoking this method,
 * as it is a backdoor for adding invalid objects.
 *
 * @param set  the sorted set to predicate, must not be null
 * @param predicate  the predicate for the sorted set, must not be null
 * @return a predicated sorted set backed by the given sorted set
 * @throws IllegalArgumentException  if the Set or Predicate is null
 */
public static SortedSet predicatedSortedSet(SortedSet set, Predicate predicate) {
  return PredicatedSortedSet.decorate(set, predicate);
}
origin: com.github.becauseQA/becauseQA-utils

/**
 * Returns a predicated (validating) sorted set backed by the given sorted set.  
 * <p>
 * Only objects that pass the test in the given predicate can be added to the set.
 * Trying to add an invalid object results in an IllegalArgumentException.
 * It is important not to use the original set after invoking this method,
 * as it is a backdoor for adding invalid objects.
 *
 * @param set  the sorted set to predicate, must not be null
 * @param predicate  the predicate for the sorted set, must not be null
 * @return a predicated sorted set backed by the given sorted set
 * @throws IllegalArgumentException  if the Set or Predicate is null
 */
public static SortedSet predicatedSortedSet(SortedSet set, Predicate predicate) {
  return PredicatedSortedSet.decorate(set, predicate);
}
org.apache.commons.collections.setPredicatedSortedSetdecorate

Javadoc

Factory method to create a predicated (validating) sorted set.

If there are any elements already in the set being decorated, they are validated.

Popular methods of PredicatedSortedSet

  • <init>
    Constructor that wraps (not copies). If there are any elements already in the set being decorated, t
  • getCollection
  • getSortedSet
    Gets the sorted set being decorated.
  • getSet

Popular in Java

  • Making http requests using okhttp
  • startActivity (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • getSharedPreferences (Context)
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now