View Javadoc

1   /*
2    * Copyright 2013 The Netty Project
3    *
4    * The Netty Project licenses this file to you under the Apache License,
5    * version 2.0 (the "License"); you may not use this file except in compliance
6    * with the License. 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, WITHOUT
12   * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13   * License for the specific language governing permissions and limitations
14   * under the License.
15   */
16  
17  package org.jboss.netty.util.internal;
18  
19  import java.nio.ByteBuffer;
20  import java.security.cert.X509Certificate;
21  
22  public final class EmptyArrays {
23  
24      public static final byte[] EMPTY_BYTES = new byte[0];
25      public static final boolean[] EMPTY_BOOLEANS = new boolean[0];
26      public static final double[] EMPTY_DOUBLES = new double[0];
27      public static final float[] EMPTY_FLOATS = new float[0];
28      public static final int[] EMPTY_INTS = new int[0];
29      public static final short[] EMPTY_SHORTS = new short[0];
30      public static final long[] EMPTY_LONGS = new long[0];
31      public static final Object[] EMPTY_OBJECTS = new Object[0];
32      public static final String[] EMPTY_STRINGS = new String[0];
33      public static final StackTraceElement[] EMPTY_STACK_TRACE = new StackTraceElement[0];
34      public static final ByteBuffer[] EMPTY_BYTE_BUFFERS = new ByteBuffer[0];
35      public static final X509Certificate[] EMPTY_X509_CERTIFICATES = new X509Certificate[0];
36  
37      private EmptyArrays() { }
38  }