Deprecated API
Show API deprecated in:
Contents
-
Deprecated ClassesClassDeprecated inDescription2.0Use
BitSet, which grows as needed:firstSet(where)isnextSetBit(where+1), andlastSet(where)ispreviousSetBit(where-1);setUpTo(bit)isset(0, bit+1), andclearUpTo(bit)isclear(0, bit+1);setAll()isset(0, n)for a sizen;clearAll()isclear();intersectionEmpty(o)is!intersects(o);isZero()isisEmpty();copyBits(o)isclear()thenor(o);numberOfOnes()iscardinality(), andnumberOfOnes(where)isget(0, where+1).cardinality();or_upTo(o, bit)isor(o.get(0, bit+1)).
BitSet'sand(),or()andxor()do not return whether they changed the set: compare itscardinality()before and after anand()or anor().2.0UsePair, an immutable record whosePair.left()andPair.right()replace the methods of the same name. Unlike aDefault.PairList, aPairis not aList, and itshashCode()andtoString()differ.2.0Use aPredicateand aFunction, which can be lambdas, withFilterIterator(Iterator,Predicate,Function),FilterIterator.filter(Iterator,Predicate)orFilterIterator.map(Iterator,Function).2.0ImplementIteratorinstead: its defaultremove()method throwsUnsupportedOperationException. In place ofUnmodifiableIterator.proxy(Iterator), useDefault.unmodifiableIterator(java.util.Iterator<? extends E>).1.3UseLinkedHashSetinstead.
-
Deprecated FieldsFieldDeprecated inDescription2.0Use
Comparator.nullsFirst(Comparator.naturalOrder()), which this is. PlainComparator.naturalOrder()is not a replacement: it throwsNullPointerExceptionwhen it comparesnull.1.32.0UseDefault.EMPTY_MULTIMAP(), which is parameterized.1.32.0UseCollections.emptyIterator(). Unlike this iterator, theremove()method ofCollections.emptyIterator()throwsIllegalStateException, notUnsupportedOperationException.2.0UseFactories.arrayListFactory(), which is parameterized.2.0UseFactories.hashMapFactory(), which is parameterized.2.0UseFactories.hashSetFactory(), which is parameterized.2.0UseFactories.linearSetFactory(), which is parameterized.2.0UseFactories.linkedHashMapFactory(), which is parameterized.2.0UseFactories.linkedHashSetFactory(), which is parameterized.2.0UseFactories.linkedListFactory(), which is parameterized.2.0UseFactories.treeMapFactory(), which is parameterized.2.0UseFactories.treeSetFactory(), which is parameterized.2.0
-
Deprecated MethodsMethodDeprecated inDescription2.0Use
Comparator.nullsFirst(Comparator.naturalOrder()), which this returns. PlainComparator.naturalOrder()is not a replacement: it throwsNullPointerExceptionwhen it comparesnull.1.3UseCollections.emptyList(), which this returns.1.31.32.0UseAbstractMap.SimpleImmutableEntry, which this method now returns, orMap.entry(Object,Object), which does not permitnulls.2.0UseCollections.emptyIterator(). Unlike this iterator, theremove()method ofCollections.emptyIterator()throwsIllegalStateException, notUnsupportedOperationException.2.0UsePair, an immutable record:new Pair<>(left, right). For an immutable list, useList.of(Object,Object), which does not permitnulls.2.01.3UseCollections.singletonListinstead.2.02.0UseLong.bitCount(long).2.0UseString.repeat(int).2.0UseInteger.bitCount(~v).2.0UseLong.bitCount(~v).
-
Deprecated ConstructorsConstructorDeprecated inDescription2.0Use
FilterIterator(Iterator,Predicate,Function), orFilterIterator.filter(Iterator,Predicate)orFilterIterator.map(Iterator,Function), with lambdas instead of aFilterIterator.Filter.