From 8b328d838ebc3d378c42f7e5d2100ae99ffc789b Mon Sep 17 00:00:00 2001 From: Thomas Neidhart Date: Fri, 29 May 2015 11:34:10 +0000 Subject: [PATCH] Remove accidental commit. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1682423 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/commons/collections4/SetUtils.java | 62 ------------------- 1 file changed, 62 deletions(-) diff --git a/src/main/java/org/apache/commons/collections4/SetUtils.java b/src/main/java/org/apache/commons/collections4/SetUtils.java index 7672b3fa6..409ed6aea 100644 --- a/src/main/java/org/apache/commons/collections4/SetUtils.java +++ b/src/main/java/org/apache/commons/collections4/SetUtils.java @@ -19,19 +19,15 @@ package org.apache.commons.collections4; import java.util.Collection; import java.util.Collections; import java.util.IdentityHashMap; -import java.util.NavigableSet; import java.util.Set; import java.util.SortedSet; import java.util.TreeSet; import org.apache.commons.collections4.set.ListOrderedSet; -import org.apache.commons.collections4.set.PredicatedNavigableSet; import org.apache.commons.collections4.set.PredicatedSet; import org.apache.commons.collections4.set.PredicatedSortedSet; -import org.apache.commons.collections4.set.TransformedNavigableSet; import org.apache.commons.collections4.set.TransformedSet; import org.apache.commons.collections4.set.TransformedSortedSet; -import org.apache.commons.collections4.set.UnmodifiableNavigableSet; import org.apache.commons.collections4.set.UnmodifiableSet; import org.apache.commons.collections4.set.UnmodifiableSortedSet; @@ -358,62 +354,4 @@ public class SetUtils { return TransformedSortedSet.transformingSortedSet(set, transformer); } - // NavigableSet - //----------------------------------------------------------------------- - /** - * Returns an unmodifiable navigable set backed by the given navigable set. - *

- * This method uses the implementation in the decorators subpackage. - * - * @param the element type - * @param set the navigable set to make unmodifiable, must not be null - * @return an unmodifiable set backed by the given set - * @throws IllegalArgumentException if the set is null - * @since 4.1 - */ - public static SortedSet unmodifiableNavigableSet(final NavigableSet set) { - return UnmodifiableNavigableSet.unmodifiableNavigableSet(set); - } - - /** - * Returns a predicated (validating) navigable set backed by the given navigable set. - *

- * 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 the element type - * @param set the navigable set to predicate, must not be null - * @param predicate the predicate for the navigable set, must not be null - * @return a predicated navigable set backed by the given navigable set - * @throws IllegalArgumentException if the Set or Predicate is null - * @since 4.1 - */ - public static SortedSet predicatedNavigableSet(final NavigableSet set, final Predicate predicate) { - return PredicatedNavigableSet.predicatedNavigableSet(set, predicate); - } - - /** - * Returns a transformed navigable set backed by the given navigable set. - *

- * Each object is passed through the transformer as it is added to the - * Set. It is important not to use the original set after invoking this - * method, as it is a backdoor for adding untransformed objects. - *

- * Existing entries in the specified set will not be transformed. - * If you want that behaviour, see {@link TransformedNavigableSet#transformedNavigableSet}. - * - * @param the element type - * @param set the navigable set to transform, must not be null - * @param transformer the transformer for the set, must not be null - * @return a transformed set backed by the given set - * @throws IllegalArgumentException if the Set or Transformer is null - * @since 4.1 - */ - public static SortedSet transformedNavigableSet(final NavigableSet set, - final Transformer transformer) { - return TransformedNavigableSet.transformingNavigableSet(set, transformer); - } - }