Java Code Examples for sun.util.locale.provider.TimeZoneNameUtility#getZoneStrings()

The following examples show how to use sun.util.locale.provider.TimeZoneNameUtility#getZoneStrings() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DateFormatSymbols.java    From jdk1.8-source-analysis with Apache License 2.0 6 votes vote down vote up
private String[][] getZoneStringsImpl(boolean needsCopy) {
    if (zoneStrings == null) {
        zoneStrings = TimeZoneNameUtility.getZoneStrings(locale);
    }

    if (!needsCopy) {
        return zoneStrings;
    }

    int len = zoneStrings.length;
    String[][] aCopy = new String[len][];
    for (int i = 0; i < len; i++) {
        aCopy[i] = Arrays.copyOf(zoneStrings[i], zoneStrings[i].length);
    }
    return aCopy;
}
 
Example 2
Source File: DateFormatSymbols.java    From Java8CN with Apache License 2.0 6 votes vote down vote up
private String[][] getZoneStringsImpl(boolean needsCopy) {
    if (zoneStrings == null) {
        zoneStrings = TimeZoneNameUtility.getZoneStrings(locale);
    }

    if (!needsCopy) {
        return zoneStrings;
    }

    int len = zoneStrings.length;
    String[][] aCopy = new String[len][];
    for (int i = 0; i < len; i++) {
        aCopy[i] = Arrays.copyOf(zoneStrings[i], zoneStrings[i].length);
    }
    return aCopy;
}
 
Example 3
Source File: DateFormatSymbols.java    From jdk8u-jdk with GNU General Public License v2.0 6 votes vote down vote up
private String[][] getZoneStringsImpl(boolean needsCopy) {
    if (zoneStrings == null) {
        zoneStrings = TimeZoneNameUtility.getZoneStrings(locale);
    }

    if (!needsCopy) {
        return zoneStrings;
    }

    int len = zoneStrings.length;
    String[][] aCopy = new String[len][];
    for (int i = 0; i < len; i++) {
        aCopy[i] = Arrays.copyOf(zoneStrings[i], zoneStrings[i].length);
    }
    return aCopy;
}
 
Example 4
Source File: DateFormatSymbols.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
private String[][] getZoneStringsImpl(boolean needsCopy) {
    if (zoneStrings == null) {
        zoneStrings = TimeZoneNameUtility.getZoneStrings(locale);
    }

    if (!needsCopy) {
        return zoneStrings;
    }

    int len = zoneStrings.length;
    String[][] aCopy = new String[len][];
    for (int i = 0; i < len; i++) {
        aCopy[i] = Arrays.copyOf(zoneStrings[i], zoneStrings[i].length);
    }
    return aCopy;
}
 
Example 5
Source File: DateFormatSymbols.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
private String[][] getZoneStringsImpl(boolean needsCopy) {
    if (zoneStrings == null) {
        zoneStrings = TimeZoneNameUtility.getZoneStrings(locale);
    }

    if (!needsCopy) {
        return zoneStrings;
    }

    int len = zoneStrings.length;
    String[][] aCopy = new String[len][];
    for (int i = 0; i < len; i++) {
        aCopy[i] = Arrays.copyOf(zoneStrings[i], zoneStrings[i].length);
    }
    return aCopy;
}
 
Example 6
Source File: DateFormatSymbols.java    From JDKSourceCode1.8 with MIT License 6 votes vote down vote up
private String[][] getZoneStringsImpl(boolean needsCopy) {
    if (zoneStrings == null) {
        zoneStrings = TimeZoneNameUtility.getZoneStrings(locale);
    }

    if (!needsCopy) {
        return zoneStrings;
    }

    int len = zoneStrings.length;
    String[][] aCopy = new String[len][];
    for (int i = 0; i < len; i++) {
        aCopy[i] = Arrays.copyOf(zoneStrings[i], zoneStrings[i].length);
    }
    return aCopy;
}
 
Example 7
Source File: DateFormatSymbols.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
private String[][] getZoneStringsImpl(boolean needsCopy) {
    if (zoneStrings == null) {
        zoneStrings = TimeZoneNameUtility.getZoneStrings(locale);
    }

    if (!needsCopy) {
        return zoneStrings;
    }

    int len = zoneStrings.length;
    String[][] aCopy = new String[len][];
    for (int i = 0; i < len; i++) {
        aCopy[i] = Arrays.copyOf(zoneStrings[i], zoneStrings[i].length);
    }
    return aCopy;
}
 
Example 8
Source File: DateFormatSymbols.java    From jdk8u_jdk with GNU General Public License v2.0 6 votes vote down vote up
private String[][] getZoneStringsImpl(boolean needsCopy) {
    if (zoneStrings == null) {
        zoneStrings = TimeZoneNameUtility.getZoneStrings(locale);
    }

    if (!needsCopy) {
        return zoneStrings;
    }

    int len = zoneStrings.length;
    String[][] aCopy = new String[len][];
    for (int i = 0; i < len; i++) {
        aCopy[i] = Arrays.copyOf(zoneStrings[i], zoneStrings[i].length);
    }
    return aCopy;
}
 
Example 9
Source File: DateFormatSymbols.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
private String[][] getZoneStringsImpl(boolean needsCopy) {
    if (zoneStrings == null) {
        zoneStrings = TimeZoneNameUtility.getZoneStrings(locale);
    }

    if (!needsCopy) {
        return zoneStrings;
    }

    int len = zoneStrings.length;
    String[][] aCopy = new String[len][];
    for (int i = 0; i < len; i++) {
        aCopy[i] = Arrays.copyOf(zoneStrings[i], zoneStrings[i].length);
    }
    return aCopy;
}
 
Example 10
Source File: DateFormatSymbols.java    From Bytecoder with Apache License 2.0 5 votes vote down vote up
/**
 * Write out the default serializable data, after ensuring the
 * {@code zoneStrings} field is initialized in order to make
 * sure the backward compatibility.
 *
 * @since 1.6
 */
@java.io.Serial
private void writeObject(ObjectOutputStream stream) throws IOException {
    if (zoneStrings == null) {
        zoneStrings = TimeZoneNameUtility.getZoneStrings(locale);
    }
    stream.defaultWriteObject();
}
 
Example 11
Source File: DateFormatSymbols.java    From jdk8u-jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Write out the default serializable data, after ensuring the
 * <code>zoneStrings</code> field is initialized in order to make
 * sure the backward compatibility.
 *
 * @since 1.6
 */
private void writeObject(ObjectOutputStream stream) throws IOException {
    if (zoneStrings == null) {
        zoneStrings = TimeZoneNameUtility.getZoneStrings(locale);
    }
    stream.defaultWriteObject();
}
 
Example 12
Source File: DateFormatSymbols.java    From openjdk-jdk9 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Write out the default serializable data, after ensuring the
 * <code>zoneStrings</code> field is initialized in order to make
 * sure the backward compatibility.
 *
 * @since 1.6
 */
private void writeObject(ObjectOutputStream stream) throws IOException {
    if (zoneStrings == null) {
        zoneStrings = TimeZoneNameUtility.getZoneStrings(locale);
    }
    stream.defaultWriteObject();
}
 
Example 13
Source File: DateFormatSymbols.java    From openjdk-8-source with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Write out the default serializable data, after ensuring the
 * <code>zoneStrings</code> field is initialized in order to make
 * sure the backward compatibility.
 *
 * @since 1.6
 */
private void writeObject(ObjectOutputStream stream) throws IOException {
    if (zoneStrings == null) {
        zoneStrings = TimeZoneNameUtility.getZoneStrings(locale);
    }
    stream.defaultWriteObject();
}
 
Example 14
Source File: DateFormatSymbols.java    From openjdk-jdk8u with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Write out the default serializable data, after ensuring the
 * <code>zoneStrings</code> field is initialized in order to make
 * sure the backward compatibility.
 *
 * @since 1.6
 */
private void writeObject(ObjectOutputStream stream) throws IOException {
    if (zoneStrings == null) {
        zoneStrings = TimeZoneNameUtility.getZoneStrings(locale);
    }
    stream.defaultWriteObject();
}
 
Example 15
Source File: DateFormatSymbols.java    From openjdk-8 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Write out the default serializable data, after ensuring the
 * <code>zoneStrings</code> field is initialized in order to make
 * sure the backward compatibility.
 *
 * @since 1.6
 */
private void writeObject(ObjectOutputStream stream) throws IOException {
    if (zoneStrings == null) {
        zoneStrings = TimeZoneNameUtility.getZoneStrings(locale);
    }
    stream.defaultWriteObject();
}
 
Example 16
Source File: DateFormatSymbols.java    From jdk8u60 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Write out the default serializable data, after ensuring the
 * <code>zoneStrings</code> field is initialized in order to make
 * sure the backward compatibility.
 *
 * @since 1.6
 */
private void writeObject(ObjectOutputStream stream) throws IOException {
    if (zoneStrings == null) {
        zoneStrings = TimeZoneNameUtility.getZoneStrings(locale);
    }
    stream.defaultWriteObject();
}
 
Example 17
Source File: DateFormatSymbols.java    From jdk8u-dev-jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Write out the default serializable data, after ensuring the
 * <code>zoneStrings</code> field is initialized in order to make
 * sure the backward compatibility.
 *
 * @since 1.6
 */
private void writeObject(ObjectOutputStream stream) throws IOException {
    if (zoneStrings == null) {
        zoneStrings = TimeZoneNameUtility.getZoneStrings(locale);
    }
    stream.defaultWriteObject();
}
 
Example 18
Source File: DateFormatSymbols.java    From TencentKona-8 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Write out the default serializable data, after ensuring the
 * <code>zoneStrings</code> field is initialized in order to make
 * sure the backward compatibility.
 *
 * @since 1.6
 */
private void writeObject(ObjectOutputStream stream) throws IOException {
    if (zoneStrings == null) {
        zoneStrings = TimeZoneNameUtility.getZoneStrings(locale);
    }
    stream.defaultWriteObject();
}
 
Example 19
Source File: DateFormatSymbols.java    From Java8CN with Apache License 2.0 3 votes vote down vote up
/**
 * Write out the default serializable data, after ensuring the
 * <code>zoneStrings</code> field is initialized in order to make
 * sure the backward compatibility.
 *
 * @since 1.6
 */
private void writeObject(ObjectOutputStream stream) throws IOException {
    if (zoneStrings == null) {
        zoneStrings = TimeZoneNameUtility.getZoneStrings(locale);
    }
    stream.defaultWriteObject();
}
 
Example 20
Source File: DateFormatSymbols.java    From jdk1.8-source-analysis with Apache License 2.0 3 votes vote down vote up
/**
 * Write out the default serializable data, after ensuring the
 * <code>zoneStrings</code> field is initialized in order to make
 * sure the backward compatibility.
 *
 * @since 1.6
 */
private void writeObject(ObjectOutputStream stream) throws IOException {
    if (zoneStrings == null) {
        zoneStrings = TimeZoneNameUtility.getZoneStrings(locale);
    }
    stream.defaultWriteObject();
}