Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Type | Name and description |
---|---|
protected static Collection<T> |
cloneSimilarCollection(Collection<T> orig, int newCapacity) |
protected static Map<K, V> |
cloneSimilarMap(Map<K, V> orig) |
static void |
closeQuietly(Closeable c) Close the Closeable. |
static void |
closeWithWarning(Closeable c) Close the Closeable. |
protected static T[] |
createSimilarArray(T[] orig, int newCapacity) |
protected static Collection<T> |
createSimilarCollection(Iterable<T> iterable) |
protected static Collection<T> |
createSimilarCollection(Collection<T> collection) |
protected static Collection<T> |
createSimilarCollection(Collection<T> orig, int newCapacity) |
protected static List<T> |
createSimilarList(List<T> orig, int newCapacity) |
protected static Map<K, V> |
createSimilarMap(Map<K, V> orig) |
protected static Collection |
createSimilarOrDefaultCollection(Object object) |
protected static Set<T> |
createSimilarSet(Set<T> orig) |
protected static int |
normaliseIndex(int i, int size) This converts a possibly negative index to a real index into the array. |
protected static boolean |
sameType(Collection[] cols) Determines if all items of this array are of the same type. |
protected static RangeInfo |
subListBorders(int size, Range range) |
protected static RangeInfo |
subListBorders(int size, EmptyRange range) |
Close the Closeable. Ignore any problems that might occur.
c
- the thing to closeClose the Closeable. Logging a warning if any problems occur.
c
- the thing to closeThis converts a possibly negative index to a real index into the array.
i
- the unnormalized indexsize
- the array sizeDetermines if all items of this array are of the same type.
cols
- an array of collections