private static boolean timeZoneStringsEqual(DateFormatSymbols lhs, DateFormatSymbols rhs) { // Quick check that may keep us from having to load the zone strings. // Note that different locales may have the same strings, so the opposite check isn't valid. if (lhs.zoneStrings == null && rhs.zoneStrings == null && lhs.locale.equals(rhs.locale)) { return true; } // Make sure zone strings are loaded, then check. return Arrays.deepEquals(lhs.internalZoneStrings(), rhs.internalZoneStrings()); }
private void writeObject(ObjectOutputStream oos) throws IOException { internalZoneStrings(); oos.defaultWriteObject(); }
@Override public String toString() { // 'locale' isn't part of the externally-visible state. // 'zoneStrings' is so large, we just print a representative value. return getClass().getName() + "[amPmStrings=" + Arrays.toString(ampms) + ",customZoneStrings=" + customZoneStrings + ",eras=" + Arrays.toString(eras) + ",localPatternChars=" + localPatternChars + ",months=" + Arrays.toString(months) + ",shortMonths=" + Arrays.toString(shortMonths) + ",shortWeekdays=" + Arrays.toString(shortWeekdays) + ",weekdays=" + Arrays.toString(weekdays) + ",zoneStrings=[" + Arrays.toString(internalZoneStrings()[0]) + "...]" + "]"; }
@Override public int hashCode() { String[][] zoneStrings = internalZoneStrings(); int hashCode; hashCode = localPatternChars.hashCode();
String[][] result = clone2dStringArray(internalZoneStrings());
return offset; for (String[] row : formatData.internalZoneStrings()) { for (int i = TimeZoneNames.LONG_NAME; i < TimeZoneNames.NAME_COUNT; ++i) { if (row[i] == null) {
private void writeObject(ObjectOutputStream oos) throws IOException { internalZoneStrings(); oos.defaultWriteObject(); }
private static boolean timeZoneStringsEqual(DateFormatSymbols lhs, DateFormatSymbols rhs) { // Quick check that may keep us from having to load the zone strings. // Note that different locales may have the same strings, so the opposite check isn't valid. if (lhs.zoneStrings == null && rhs.zoneStrings == null && lhs.locale.equals(rhs.locale)) { return true; } // Make sure zone strings are loaded, then check. return Arrays.deepEquals(lhs.internalZoneStrings(), rhs.internalZoneStrings()); }
private static boolean timeZoneStringsEqual(DateFormatSymbols lhs, DateFormatSymbols rhs) { // Quick check that may keep us from having to load the zone strings. // Note that different locales may have the same strings, so the opposite check isn't valid. if (lhs.zoneStrings == null && rhs.zoneStrings == null && lhs.locale.equals(rhs.locale)) { return true; } // Make sure zone strings are loaded, then check. return Arrays.deepEquals(lhs.internalZoneStrings(), rhs.internalZoneStrings()); }
private static boolean timeZoneStringsEqual(DateFormatSymbols lhs, DateFormatSymbols rhs) { // Quick check that may keep us from having to load the zone strings. // Note that different locales may have the same strings, so the opposite check isn't valid. if (lhs.zoneStrings == null && rhs.zoneStrings == null && lhs.locale.equals(rhs.locale)) { return true; } // Make sure zone strings are loaded, then check. return Arrays.deepEquals(lhs.internalZoneStrings(), rhs.internalZoneStrings()); }
private static boolean timeZoneStringsEqual(DateFormatSymbols lhs, DateFormatSymbols rhs) { // Quick check that may keep us from having to load the zone strings. // Note that different locales may have the same strings, so the opposite check isn't valid. if (lhs.zoneStrings == null && rhs.zoneStrings == null && lhs.locale.equals(rhs.locale)) { return true; } // Make sure zone strings are loaded, then check. return Arrays.deepEquals(lhs.internalZoneStrings(), rhs.internalZoneStrings()); }
private static boolean timeZoneStringsEqual(DateFormatSymbols lhs, DateFormatSymbols rhs) { // Quick check that may keep us from having to load the zone strings. // Note that different locales may have the same strings, so the opposite check isn't valid. if (lhs.zoneStrings == null && rhs.zoneStrings == null && lhs.locale.equals(rhs.locale)) { return true; } // Make sure zone strings are loaded, then check. return Arrays.deepEquals(lhs.internalZoneStrings(), rhs.internalZoneStrings()); }
private static boolean timeZoneStringsEqual(DateFormatSymbols lhs, DateFormatSymbols rhs) { // Quick check that may keep us from having to load the zone strings. // Note that different locales may have the same strings, so the opposite check isn't valid. if (lhs.zoneStrings == null && rhs.zoneStrings == null && lhs.locale.equals(rhs.locale)) { return true; } // Make sure zone strings are loaded, then check. return Arrays.deepEquals(lhs.internalZoneStrings(), rhs.internalZoneStrings()); }
private void writeObject(ObjectOutputStream oos) throws IOException { internalZoneStrings(); oos.defaultWriteObject(); }
private void writeObject(ObjectOutputStream oos) throws IOException { internalZoneStrings(); oos.defaultWriteObject(); }
private void writeObject(ObjectOutputStream oos) throws IOException { internalZoneStrings(); oos.defaultWriteObject(); }
private void writeObject(ObjectOutputStream oos) throws IOException { internalZoneStrings(); oos.defaultWriteObject(); }
private void writeObject(ObjectOutputStream oos) throws IOException { internalZoneStrings(); oos.defaultWriteObject(); }
@Override public String toString() { // 'locale' isn't part of the externally-visible state. // 'zoneStrings' is so large, we just print a representative value. return getClass().getName() + "[amPmStrings=" + Arrays.toString(ampms) + ",customZoneStrings=" + customZoneStrings + ",eras=" + Arrays.toString(eras) + ",localPatternChars=" + localPatternChars + ",months=" + Arrays.toString(months) + ",shortMonths=" + Arrays.toString(shortMonths) + ",shortWeekdays=" + Arrays.toString(shortWeekdays) + ",weekdays=" + Arrays.toString(weekdays) + ",zoneStrings=[" + Arrays.toString(internalZoneStrings()[0]) + "...]" + "]"; }
@Override public String toString() { // 'locale' isn't part of the externally-visible state. // 'zoneStrings' is so large, we just print a representative value. return getClass().getName() + "[amPmStrings=" + Arrays.toString(ampms) + ",customZoneStrings=" + customZoneStrings + ",eras=" + Arrays.toString(eras) + ",localPatternChars=" + localPatternChars + ",months=" + Arrays.toString(months) + ",shortMonths=" + Arrays.toString(shortMonths) + ",shortWeekdays=" + Arrays.toString(shortWeekdays) + ",weekdays=" + Arrays.toString(weekdays) + ",zoneStrings=[" + Arrays.toString(internalZoneStrings()[0]) + "...]" + "]"; }