webkit
2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
|
The contents of a repeated field: essentially, a collection with some extra restrictions (no null values) and capabilities (deep cloning). More...
Public Member Functions | |
RepeatedField< T > | Clone () |
Creates a deep clone of this repeated field. More... | |
void | AddEntriesFrom (CodedInputStream input, FieldCodec< T > codec) |
Adds the entries from the given input stream, decoding them with the specified codec. More... | |
int | CalculateSize (FieldCodec< T > codec) |
Calculates the size of this collection based on the given codec. More... | |
void | WriteTo (CodedOutputStream output, FieldCodec< T > codec) |
Writes the contents of this collection to the given CodedOutputStream, encoding each value using the specified codec. More... | |
void | Add (T item) |
Adds the specified item to the collection. More... | |
void | Clear () |
Removes all items from the collection. More... | |
bool | Contains (T item) |
Determines whether this collection contains the given item. More... | |
void | CopyTo (T[] array, int arrayIndex) |
Copies this collection to the given array. More... | |
bool | Remove (T item) |
Removes the specified item from the collection More... | |
void | Add (RepeatedField< T > values) |
Adds all of the specified values into this collection. More... | |
void | Add (IEnumerable< T > values) |
Adds all of the specified values into this collection. More... | |
IEnumerator< T > | GetEnumerator () |
Returns an enumerator that iterates through the collection. More... | |
override bool | Equals (object obj) |
Determines whether the specified System.Object, is equal to this instance. More... | |
override int | GetHashCode () |
Returns a hash code for this instance. More... | |
bool | Equals (RepeatedField< T > other) |
Compares this repeated field with another for equality. More... | |
int | IndexOf (T item) |
Returns the index of the given item within the collection, or -1 if the item is not present. More... | |
void | Insert (int index, T item) |
Inserts the given item at the specified index. More... | |
void | RemoveAt (int index) |
Removes the item at the given index. More... | |
override string | ToString () |
Returns a string representation of this repeated field, in the same way as it would be represented by the default JSON formatter. More... | |
Properties | |
int | Count [get] |
Gets the number of elements contained in the collection. More... | |
bool | IsReadOnly [get] |
Gets a value indicating whether the collection is read-only. More... | |
T | this[int index] [get, set] |
Gets or sets the item at the specified index. More... | |
The contents of a repeated field: essentially, a collection with some extra restrictions (no null values) and capabilities (deep cloning).
This implementation does not generally prohibit the use of types which are not supported by Protocol Buffers but nor does it guarantee that all operations will work in such cases.
T | The element type of the repeated field. |
|
inline |
Adds the specified item to the collection.
item | The item to add. |
|
inline |
Adds all of the specified values into this collection.
values | The values to add to this collection. |
|
inline |
Adds all of the specified values into this collection.
values | The values to add to this collection. |
|
inline |
|
inline |
Calculates the size of this collection based on the given codec.
codec | The codec to use when encoding each field. |
|
inline |
Removes all items from the collection.
|
inline |
Creates a deep clone of this repeated field.
If the field type is a message type, each element is also cloned; otherwise, it is assumed that the field type is primitive (including string and bytes, both of which are immutable) and so a simple copy is equivalent to a deep clone.
|
inline |
Determines whether this collection contains the given item.
item | The item to find. |
true
if this collection contains the given item; false
otherwise.
|
inline |
|
inline |
Determines whether the specified System.Object, is equal to this instance.
obj | The System.Object to compare with this instance. |
true
if the specified System.Object is equal to this instance; otherwise, false
.
|
inline |
Compares this repeated field with another for equality.
other | The repeated field to compare this with. |
true
if other refers to an equal repeated field; false
otherwise.
|
inline |
Returns an enumerator that iterates through the collection.
|
inline |
Returns a hash code for this instance.
|
inline |
|
inline |
|
inline |
Removes the specified item from the collection
item | The item to remove. |
true
if the item was found and removed; false
otherwise.
|
inline |
Removes the item at the given index.
index | The zero-based index of the item to remove. |
|
inline |
Returns a string representation of this repeated field, in the same way as it would be represented by the default JSON formatter.
|
inline |
Writes the contents of this collection to the given CodedOutputStream, encoding each value using the specified codec.
|
get |
Gets the number of elements contained in the collection.
|
get |
Gets a value indicating whether the collection is read-only.
|
getset |