Package com.ibm.icu.impl
Class ICUResource.Value
- java.lang.Object
-
- com.ibm.icu.impl.ICUResource.Value
-
- Enclosing class:
- ICUResource
public abstract static class ICUResource.Value extends Object
Represents a resource bundle item's value. Avoids object creations as much as possible. Mutable, not thread-safe.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedValue()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract ByteBuffergetBinary()abstract intgetInt()abstract int[]getIntVector()abstract StringgetString()abstract intgetType()abstract intgetUInt()StringtoString()Only for debugging.
-
-
-
Method Detail
-
getType
public abstract int getType()
- Returns:
- ICU resource type like
UResourceBundle.getType(), for example,UResourceBundle.STRING
-
getString
public abstract String getString()
- Throws:
UResourceTypeMismatchException- if this is not a string resource- See Also:
UResourceBundle.getString()
-
getInt
public abstract int getInt()
- Throws:
UResourceTypeMismatchException- if this is not an integer resource- See Also:
UResourceBundle.getInt()
-
getUInt
public abstract int getUInt()
- Throws:
UResourceTypeMismatchException- if this is not an integer resource- See Also:
UResourceBundle.getUInt()
-
getIntVector
public abstract int[] getIntVector()
- Throws:
UResourceTypeMismatchException- if this is not an intvector resource- See Also:
UResourceBundle.getIntVector()
-
getBinary
public abstract ByteBuffer getBinary()
- Throws:
UResourceTypeMismatchException- if this is not a binary-blob resource- See Also:
UResourceBundle.getBinary()
-
-