@@ -0,0 +1,2291 @@
+/**%0D%0A * Copyright 2013-2014 Guoqiang Chen, Shanghai, China. All rights reserved.%0D%0A *%0D%0A * Email: subchen@gmail.com%0D%0A * URL: http://subchen.github.io/%0D%0A *%0D%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0D%0A * you may not use this file except in compliance with the License.%0D%0A * You may obtain a copy of the License at%0D%0A *%0D%0A *   http://www.apache.org/licenses/LICENSE-2.0%0D%0A *%0D%0A * Unless required by applicable law or agreed to in writing, software%0D%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0D%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0D%0A * See the License for the specific language governing permissions and%0D%0A * limitations under the License.%0D%0A */%0D%0Apackage jetbrick.lang.annotations;%0D%0A%0D%0Apublic class ValueConstants %7B%0D%0A    public static final String EMPTY = %22%22;%0D%0A    public static final String NULL = %22%5C0%5C1%5C2%22;%0D%0A%0D%0A    public static boolean isEmpty(String value) %7B%0D%0A        return value == null %7C%7C value.length() == 0;%0D%0A    %7D%0D%0A%0D%0A    public static boolean isNull(String value) %7B%0D%0A        return value == null %7C%7C NULL.equals(value);%0D%0A    %7D%0D%0A%0D%0A    public static boolean isEmptyOrNull(String value) %7B%0D%0A        return value == null %7C%7C value.length() == 0 %7C%7C NULL.equals(value);%0D%0A    %7D%0D%0A%0D%0A    public static String defaultValue(String value, String defaultValue) %7B%0D%0A        if (value == null %7C%7C value.length() == 0 %7C%7C NULL.equals(value)) %7B%0D%0A            return defaultValue;%0D%0A        %7D%0D%0A        return value;%0D%0A    %7D%0D%0A%0D%0A    public static String defaultIfEmpty(String value, String defaultValue) %7B%0D%0A        if (value == null %7C%7C value.length() == 0) %7B%0D%0A            return defaultValue;%0D%0A        %7D%0D%0A        return value;%0D%0A    %7D%0D%0A%0D%0A    public static String defaultIfNull(String value, String defaultValue) %7B%0D%0A        if (value == null %7C%7C NULL.equals(value)) %7B%0D%0A            return defaultValue;%0D%0A        %7D%0D%0A        return value;%0D%0A    %7D%0D%0A%0D%0A    public static String trimToNull(String value) %7B%0D%0A        if (value == null %7C%7C value.length() == 0 %7C%7C NULL.equals(value)) %7B%0D%0A            return null;%0D%0A        %7D%0D%0A        return value;%0D%0A    %7D%0D%0A%0D%0A    public static String trimToEmpty(String value) %7B%0D%0A        if (value == null %7C%7C value.length() == 0 %7C%7C NULL.equals(value)) %7B%0D%0A            return %22%22;%0D%0A        %7D%0D%0A        return value;%0D%0A    %7D%0D%0A%7D%0D%0A

Add ValueConstants to jetbrick.lang.annotations