Lines Matching refs:kind
101 public static <T> T[] emptyArray(Class<T> kind) {
102 if (kind == Object.class) {
106 int bucket = ((System.identityHashCode(kind) / 8) & 0x7FFFFFFF) % CACHE_SIZE;
109 if (cache == null || cache.getClass().getComponentType() != kind) {
110 cache = Array.newInstance(kind, 0);
113 // Log.e("cache", "new empty " + kind.getName() + " at " + bucket);
161 public static <T> T[] appendElement(Class<T> kind, T[] array, T element) {
166 result = (T[])Array.newInstance(kind, end + 1);
170 result = (T[])Array.newInstance(kind, 1);
187 public static <T> T[] removeElement(Class<T> kind, T[] array, T element) {
195 T[] result = (T[])Array.newInstance(kind, length - 1);