The open source OpenXR runtime
1// Copyright 2020-2021, Collabora, Ltd.
2// SPDX-License-Identifier: BSL-1.0
3// Author: Rylie Pavlik <rylie.pavlik@collabora.com>
4// Inline implementations: do not include on its own!
5
6#pragma once
7
8namespace wrap {
9namespace java::util {
10inline int32_t List::size() const {
11 assert(!isNull());
12 return object().call<int32_t>(Meta::data().size);
13}
14
15inline jni::Object List::get(int32_t index) const {
16 assert(!isNull());
17 return object().call<jni::Object>(Meta::data().get, index);
18}
19
20} // namespace java::util
21} // namespace wrap