PlayerStatsBuffer
Stay organized with collections
Save and categorize content based on your preferences.
Inherited Method Summary
From class
com.google.android.gms.common.data.AbstractDataBuffer
From class java.lang.Object
From interface
com.google.android.gms.common.data.DataBuffer
From interface java.lang.Iterable
From interface
com.google.android.gms.common.api.Releasable
From interface java.io.Closeable
From interface java.lang.AutoCloseable
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["\u003cp\u003e\u003ccode\u003ePlayerStatsBuffer\u003c/code\u003e is an implementation of \u003ccode\u003eAbstractDataBuffer\u003c/code\u003e specifically designed to hold Player Stats.\u003c/p\u003e\n"],["\u003cp\u003eIt provides methods to access individual \u003ccode\u003ePlayerStats\u003c/code\u003e objects within the buffer using an index.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can iterate through all \u003ccode\u003ePlayerStats\u003c/code\u003e objects using an iterator or \u003ccode\u003esingleRefIterator\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ePlayerStatsBuffer\u003c/code\u003e implements \u003ccode\u003eReleasable\u003c/code\u003e, requiring developers to release resources when finished.\u003c/p\u003e\n"],["\u003cp\u003eStandard data buffer operations like \u003ccode\u003egetCount\u003c/code\u003e, \u003ccode\u003eisClosed\u003c/code\u003e, \u003ccode\u003eclose\u003c/code\u003e are available for managing the buffer.\u003c/p\u003e\n"]]],["`PlayerStatsBuffer` manages a collection of `PlayerStats`, implementing `AbstractDataBuffer`. Key actions include: `get(int arg0)` to retrieve a `PlayerStats` object, `getCount()` to get the total number of stats, `close()` to release resources, `isClosed()` to check if the buffer is closed. `release()` is available to release the buffer and the methods `iterator()` and `singleRefIterator()` are used to go through the Player Stats objects.\n"],null,["# PlayerStatsBuffer\n\npublic final class **PlayerStatsBuffer** extends [AbstractDataBuffer](/android/reference/com/google/android/gms/common/data/AbstractDataBuffer)\\\u003c[PlayerStats](/android/reference/com/google/android/gms/games/stats/PlayerStats)\\\u003e \n[AbstractDataBuffer](/android/reference/com/google/android/gms/common/data/AbstractDataBuffer)\nimplementation containing Player Stats. \n\n### Inherited Method Summary\n\nFrom class com.google.android.gms.common.data.AbstractDataBuffer \n\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------|\n| final void | close() |\n| abstract [PlayerStats](/android/reference/com/google/android/gms/games/stats/PlayerStats) | get(int arg0) |\n| int | getCount() |\n| boolean | isClosed() |\n| [Iterator](//developer.android.com/reference/java/util/Iterator.html)\\\u003c[PlayerStats](/android/reference/com/google/android/gms/games/stats/PlayerStats)\\\u003e | iterator() |\n| void | release() |\n| [Iterator](//developer.android.com/reference/java/util/Iterator.html)\\\u003c[PlayerStats](/android/reference/com/google/android/gms/games/stats/PlayerStats)\\\u003e | singleRefIterator() |\n\nFrom class java.lang.Object \n\n|----------------------------------------------------------------------------|--------------------------------------------------------------------------------|\n| [Object](//developer.android.com/reference/java/lang/Object.html) | clone() |\n| boolean | equals([Object](//developer.android.com/reference/java/lang/Object.html) arg0) |\n| void | finalize() |\n| final [Class](//developer.android.com/reference/java/lang/Class.html)\\\u003c?\\\u003e | getClass() |\n| int | hashCode() |\n| final void | notify() |\n| final void | notifyAll() |\n| [String](//developer.android.com/reference/java/lang/String.html) | toString() |\n| final void | wait(long arg0, int arg1) |\n| final void | wait(long arg0) |\n| final void | wait() |\n\nFrom interface com.google.android.gms.common.data.DataBuffer \n\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------|\n| abstract void | close() |\n| abstract [PlayerStats](/android/reference/com/google/android/gms/games/stats/PlayerStats) | get(int arg0) |\n| abstract int | getCount() |\n| abstract boolean | isClosed() |\n| abstract [Iterator](//developer.android.com/reference/java/util/Iterator.html)\\\u003c[PlayerStats](/android/reference/com/google/android/gms/games/stats/PlayerStats)\\\u003e | iterator() |\n| void | release() |\n| abstract [Iterator](//developer.android.com/reference/java/util/Iterator.html)\\\u003c[PlayerStats](/android/reference/com/google/android/gms/games/stats/PlayerStats)\\\u003e | singleRefIterator() |\n\nFrom interface java.lang.Iterable \n\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------|\n| void | forEach([Consumer](//developer.android.com/reference/java/util/function/Consumer.html)\\\u003c? super T\\\u003e arg0) |\n| abstract [Iterator](//developer.android.com/reference/java/util/Iterator.html)\\\u003c[PlayerStats](/android/reference/com/google/android/gms/games/stats/PlayerStats)\\\u003e | iterator() |\n| [Spliterator](//developer.android.com/reference/java/util/Spliterator.html)\\\u003c[PlayerStats](/android/reference/com/google/android/gms/games/stats/PlayerStats)\\\u003e | spliterator() |\n\nFrom interface com.google.android.gms.common.api.Releasable \n\n|---------------|-----------|\n| abstract void | release() |\n\nFrom interface java.io.Closeable \n\n|---------------|---------|\n| abstract void | close() |\n\nFrom interface java.lang.AutoCloseable \n\n|---------------|---------|\n| abstract void | close() |"]]