Technically `JHashMap` is duplicated now, but in separate namespaces. If I were to remove my `JHashMap` (and `JArrayList`) definitions, the user is forced to use fbjni v3.
24 lines
464 B
C++
24 lines
464 B
C++
//
|
|
// Created by Marc Rousavy on 25.06.21.
|
|
//
|
|
|
|
#pragma once
|
|
|
|
#include <jni.h>
|
|
#include <fbjni/fbjni.h>
|
|
|
|
namespace vision {
|
|
|
|
using namespace facebook;
|
|
using namespace jni;
|
|
|
|
// TODO: Remove when fbjni 0.2.3 releases.
|
|
template <typename K = jobject, typename V = jobject>
|
|
struct JHashMap : JavaClass<JHashMap<K, V>, JMap<K, V>> {
|
|
constexpr static auto kJavaDescriptor = "Ljava/util/HashMap;";
|
|
|
|
static local_ref<JHashMap<K, V>> create();
|
|
};
|
|
|
|
} // namespace vision
|