1 /* 2 * Copyright (C) 2010 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 package libcore.util; 18 19 import dalvik.annotation.compat.UnsupportedAppUsage; 20 21 /** @hide */ 22 @libcore.api.CorePlatformApi 23 public final class EmptyArray { EmptyArray()24 private EmptyArray() {} 25 26 @libcore.api.CorePlatformApi 27 public static final boolean[] BOOLEAN = new boolean[0]; 28 @UnsupportedAppUsage 29 @libcore.api.CorePlatformApi 30 public static final byte[] BYTE = new byte[0]; 31 public static final char[] CHAR = new char[0]; 32 public static final double[] DOUBLE = new double[0]; 33 @libcore.api.CorePlatformApi 34 public static final float[] FLOAT = new float[0]; 35 @UnsupportedAppUsage 36 @libcore.api.CorePlatformApi 37 public static final int[] INT = new int[0]; 38 @UnsupportedAppUsage 39 @libcore.api.CorePlatformApi 40 public static final long[] LONG = new long[0]; 41 42 public static final Class<?>[] CLASS = new Class[0]; 43 @UnsupportedAppUsage 44 @libcore.api.CorePlatformApi 45 public static final Object[] OBJECT = new Object[0]; 46 @libcore.api.CorePlatformApi 47 public static final String[] STRING = new String[0]; 48 public static final Throwable[] THROWABLE = new Throwable[0]; 49 public static final StackTraceElement[] STACK_TRACE_ELEMENT = new StackTraceElement[0]; 50 public static final java.lang.reflect.Type[] TYPE = new java.lang.reflect.Type[0]; 51 public static final java.lang.reflect.TypeVariable[] TYPE_VARIABLE = 52 new java.lang.reflect.TypeVariable[0]; 53 } 54