| java.lang.Object | |
| ↳ | com.google.gdata.util.common.base.CharEscaperBuilder |
Simple helper class to build a "sparse" array of objects based on the indexes that were added to it. The array will be from 0 to the maximum index given. All non-set indexes will contain null (so it's not really a sparse array, just a pseudo sparse array). The builder can also return a CharEscaper based on the generated array.
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| map | |||||||||||
| max | |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Construct a new sparse array builder.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Add a new mapping from an index to an object to the escaping.
| |||||||||||
Add multiple mappings at once for a particular index.
| |||||||||||
Convert this builder into an array of char[]s where the maximum index
is the value of the highest character that has been seen.
| |||||||||||
Convert this builder into a char escaper which is just a decorator
around the underlying array of replacement char[]s.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Construct a new sparse array builder.
Add a new mapping from an index to an object to the escaping.
| c | |
|---|---|
| r |
Add multiple mappings at once for a particular index.
| cs | |
|---|---|
| r |
Convert this builder into an array of char[]s where the maximum index is the value of the highest character that has been seen. The array will be sparse in the sense that any unseen index will default to null.
Convert this builder into a char escaper which is just a decorator around the underlying array of replacement char[]s.