1 7 package com.ibm.icu.text; 8 9 import java.text.Format ; 10 import com.ibm.icu.util.ULocale; 11 12 23 public abstract class UFormat extends Format { 24 private static final long serialVersionUID = -4964390515840164416L; 26 27 31 public UFormat() {} 32 33 35 59 public final ULocale getLocale(ULocale.Type type) { 60 return type == ULocale.ACTUAL_LOCALE ? 61 this.actualLocale : this.validLocale; 62 } 63 64 81 final void setLocale(ULocale valid, ULocale actual) { 82 if ((valid == null) != (actual == null)) { 84 throw new IllegalArgumentException (); 86 } 88 this.validLocale = valid; 91 this.actualLocale = actual; 92 } 93 94 99 private ULocale validLocale; 100 101 107 private ULocale actualLocale; 108 109 } 111 | Popular Tags |