public class StringResources extends Object
| Modifier and Type | Field and Description |
|---|---|
SortedMap<Integer,EnumMap<com.facebook.buck.android.StringResources.Gender,com.google.common.collect.ImmutableList<String>>> |
arrays |
SortedMap<Integer,EnumMap<com.facebook.buck.android.StringResources.Gender,com.google.common.collect.ImmutableMap<String,String>>> |
plurals |
SortedMap<Integer,EnumMap<com.facebook.buck.android.StringResources.Gender,String>> |
strings |
| Constructor and Description |
|---|
StringResources(SortedMap<Integer,EnumMap<com.facebook.buck.android.StringResources.Gender,String>> strings,
SortedMap<Integer,EnumMap<com.facebook.buck.android.StringResources.Gender,com.google.common.collect.ImmutableMap<String,String>>> plurals,
SortedMap<Integer,EnumMap<com.facebook.buck.android.StringResources.Gender,com.google.common.collect.ImmutableList<String>>> arrays) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBinaryFileContent()
Returns a byte array that represents the entire set of strings, plurals and string arrays in
the following binary file format:
|
StringResources |
getMergedResources(StringResources otherResources) |
public final SortedMap<Integer,EnumMap<com.facebook.buck.android.StringResources.Gender,String>> strings
public final SortedMap<Integer,EnumMap<com.facebook.buck.android.StringResources.Gender,com.google.common.collect.ImmutableMap<String,String>>> plurals
public StringResources(SortedMap<Integer,EnumMap<com.facebook.buck.android.StringResources.Gender,String>> strings, SortedMap<Integer,EnumMap<com.facebook.buck.android.StringResources.Gender,com.google.common.collect.ImmutableMap<String,String>>> plurals, SortedMap<Integer,EnumMap<com.facebook.buck.android.StringResources.Gender,com.google.common.collect.ImmutableList<String>>> arrays)
public StringResources getMergedResources(StringResources otherResources)
public byte[] getBinaryFileContent()
[Int: Version]
[Int: # of strings]
[Int: Smallest resource id among strings]
[[Short: resource id delta] [Byte: #genders] [[Byte: gender enum ordinal] [Short: length of
the string]] x #genders] x # of strings
[Byte array of the string value] x # summation of genders over # of strings
[Int: # of plurals]
[Int: Smallest resource id among plurals]
[[Short: resource id delta] [Byte: #genders] [[Byte: gender enum ordinal] [Byte: #categories]
[[Byte: category] [Short: length of plural value]] x #categories] x # of genders]
x # of plurals
[Byte array of plural value] x Summation of genders over plural categories over # of plurals
[Int: # of arrays]
[Int: Smallest resource id among arrays]
[[Short: resource id delta] [Byte: #genders] [[Byte: gender enum ordinal] [Int: #elements]
[Short: length of element] x # phaof elements] x # of genders] x # of arrays
[Byte array of string value] x Summation of genders over array elements over # of arrays