Collections.Frequency(ICollection<Object>, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the number of elements in the specified collection equal to the specified object.
[Android.Runtime.Register("frequency", "(Ljava/util/Collection;Ljava/lang/Object;)I", "")]
public static int Frequency (System.Collections.Generic.ICollection<object> c, Java.Lang.Object? o);
[<Android.Runtime.Register("frequency", "(Ljava/util/Collection;Ljava/lang/Object;)I", "")>]
static member Frequency : System.Collections.Generic.ICollection<obj> * Java.Lang.Object -> int
Parameters
the collection in which to determine the frequency
of o
- o
- Object
the object whose frequency is to be determined
Returns
the number of elements in c
equal to o
- Attributes
Remarks
Returns the number of elements in the specified collection equal to the specified object. More formally, returns the number of elements e
in the collection such that Objects.equals(o, e)
.
Added in 1.5.
Java documentation for java.util.Collections.frequency(java.util.Collection<?>, java.lang.Object)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.