All Downloads are FREE. Search and download functionalities are using the official Maven repository.

goja.core.StringPool Maven / Gradle / Ivy

/*
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
 *
 * Copyright (c) 2013-2014 sagyf Yang. The Four Group.
 */

package goja.core;

import com.jfinal.core.Const;

/**
 * Pool of String constants to prevent repeating of hard-coded String literals in the code.
 * Due to fact that these are public static final they will be inlined by java compiler and reference to
 * this class will be dropped. There is no performance gain of using this pool. Read:
 * http://java.sun.com/docs/books/jls/third_edition/html/lexical.html#3.10.5 
  • Literal strings within the same * class in the same package represent references to the same String object.
  • Literal strings * within different classes in the same package represent references to the same String object.
  • *
  • Literal strings within different classes in different packages likewise represent references to the same * String object.
  • Strings computed by constant expressions are computed at compile time and then * treated as if they were literals.
  • Strings computed by concatenation at run time are newly created and * therefore distinct.
* * @author sagyf yang * @version 1.0 2014-01-31 2:08 * @since JDK 1.6 */ public interface StringPool { String AMPERSAND = "&"; String AND = "and"; String AT = "@"; String ASTERISK = "*"; String BACK_SLASH = "\\"; String COLON = ":"; String COMMA = ","; String DASH = "-"; String DOLLAR = "$"; String DOT = "."; String DOTDOT = ".."; String DOT_CLASS = ".class"; String DOT_JAVA = ".java"; String EMPTY = ""; String EQUALS = "="; String FALSE = "false"; String SLASH = "/"; String HASH = "#"; String HAT = "^"; String LEFT_BRACE = "{"; String LEFT_BRACKET = "("; String LEFT_CHEV = "<"; String NEWLINE = "\n"; String N = "n"; String NO = "no"; String NULL = "null"; String OFF = "off"; String ON = "on"; String PERCENT = "%"; String PIPE = "|"; String PLUS = "+"; String QUESTION_MARK = "?"; String EXCLAMATION_MARK = "!"; String QUOTE = "\""; String RETURN = "\r"; String TAB = "\t"; String RIGHT_BRACE = "}"; String RIGHT_BRACKET = ")"; String RIGHT_CHEV = ">"; String SEMICOLON = ";"; String SINGLE_QUOTE = "'"; String SPACE = " "; String LEFT_SQ_BRACKET = "["; String RIGHT_SQ_BRACKET = "]"; String TRUE = "true"; String UNDERSCORE = "_"; String UTF_8 = Const.DEFAULT_ENCODING; String US_ASCII = "US-ASCII"; String ISO_8859_1 = "ISO-8859-1"; String Y = "y"; String YES = "yes"; String ONE = "1"; String ZERO = "0"; String DOLLAR_LEFT_BRACE = "${"; String CRLF = "\r\n"; String WHITESPACE = " \n\r\f\t"; String HTML_NBSP = " "; String HTML_AMP = "&"; String HTML_QUOTE = """; String HTML_LT = "<"; String HTML_GT = ">"; String PK_COLUMN = "id"; String MAIN_REDIS_CACHE = "gojaResiCache"; }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy