Kufar v3.2.0版本的 MD5 值为:6a4d203db1c561c7e3bcd50d23fed59f
以下内容为反编译后的 BusinessPhotoObjectMetadata.java 源代码,内容仅作参考
package com.yandex.mapkit.search;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.yandex.runtime.NativeObject;
import com.yandex.runtime.bindings.Archive;
import com.yandex.runtime.bindings.Serializable;
import java.nio.ByteBuffer;
import java.util.List;
public class BusinessPhotoObjectMetadata implements Serializable {
private int count;
private boolean count__is_initialized;
private NativeObject nativeObject;
private List<Photo> photos;
private boolean photos__is_initialized;
public BusinessPhotoObjectMetadata() {
this.count__is_initialized = false;
this.photos__is_initialized = false;
}
private native int getCount__Native();
public static String getNativeName() {
return "yandex::maps::mapkit::search::BusinessPhotoObjectMetadata";
}
private native List<Photo> getPhotos__Native();
private native NativeObject init(int i11, List<Photo> list);
private static native NativeObject loadNative(ByteBuffer byteBuffer);
private native ByteBuffer saveNative();
public synchronized int getCount() {
if (!this.count__is_initialized) {
this.count = getCount__Native();
this.count__is_initialized = true;
}
return this.count;
}
@NonNull
public synchronized List<Photo> getPhotos() {
if (!this.photos__is_initialized) {
this.photos = getPhotos__Native();
this.photos__is_initialized = true;
}
return this.photos;
}
@Override
public void serialize(Archive archive) {
if (archive.isReader()) {
this.nativeObject = loadNative(archive.add((ByteBuffer) null));
} else {
ByteBuffer.allocateDirect(10);
archive.add(saveNative());
}
}
public static class Photo implements Serializable {
private String f58173id;
private boolean id__is_initialized;
private List<PhotoLink> links;
private boolean links__is_initialized;
private NativeObject nativeObject;
public Photo() {
this.id__is_initialized = false;
this.links__is_initialized = false;
}
private native String getId__Native();
private native List<PhotoLink> getLinks__Native();
public static String getNativeName() {
return "yandex::maps::mapkit::search::BusinessPhotoObjectMetadata::Photo";
}
private native NativeObject init(String str, List<PhotoLink> list);
private static native NativeObject loadNative(ByteBuffer byteBuffer);
private native ByteBuffer saveNative();
@NonNull
public synchronized String getId() {
if (!this.id__is_initialized) {
this.f58173id = getId__Native();
this.id__is_initialized = true;
}
return this.f58173id;
}
@NonNull
public synchronized List<PhotoLink> getLinks() {
if (!this.links__is_initialized) {
this.links = getLinks__Native();
this.links__is_initialized = true;
}
return this.links;
}
@Override
public void serialize(Archive archive) {
if (archive.isReader()) {
this.nativeObject = loadNative(archive.add((ByteBuffer) null));
} else {
ByteBuffer.allocateDirect(10);
archive.add(saveNative());
}
}
public static class PhotoLink implements Serializable {
private NativeObject nativeObject;
private String type;
private boolean type__is_initialized;
private String uri;
private boolean uri__is_initialized;
public PhotoLink() {
this.type__is_initialized = false;
this.uri__is_initialized = false;
}
public static String getNativeName() {
return "yandex::maps::mapkit::search::BusinessPhotoObjectMetadata::Photo::PhotoLink";
}
private native String getType__Native();
private native String getUri__Native();
private native NativeObject init(String str, String str2);
private static native NativeObject loadNative(ByteBuffer byteBuffer);
private native ByteBuffer saveNative();
@Nullable
public synchronized String getType() {
if (!this.type__is_initialized) {
this.type = getType__Native();
this.type__is_initialized = true;
}
return this.type;
}
@NonNull
public synchronized String getUri() {
if (!this.uri__is_initialized) {
this.uri = getUri__Native();
this.uri__is_initialized = true;
}
return this.uri;
}
@Override
public void serialize(Archive archive) {
if (archive.isReader()) {
this.nativeObject = loadNative(archive.add((ByteBuffer) null));
} else {
ByteBuffer.allocateDirect(10);
archive.add(saveNative());
}
}
public PhotoLink(@Nullable String str, @NonNull String str2) {
this.type__is_initialized = false;
this.uri__is_initialized = false;
if (str2 != null) {
this.nativeObject = init(str, str2);
this.type = str;
this.type__is_initialized = true;
this.uri = str2;
this.uri__is_initialized = true;
return;
}
throw new IllegalArgumentException("Required field \"uri\" cannot be null");
}
private PhotoLink(NativeObject nativeObject) {
this.type__is_initialized = false;
this.uri__is_initialized = false;
this.nativeObject = nativeObject;
}
}
public Photo(@NonNull String str, @NonNull List<PhotoLink> list) {
this.id__is_initialized = false;
this.links__is_initialized = false;
if (str == null) {
throw new IllegalArgumentException("Required field \"id\" cannot be null");
}
if (list != null) {
this.nativeObject = init(str, list);
this.f58173id = str;
this.id__is_initialized = true;
this.links = list;
this.links__is_initialized = true;
return;
}
throw new IllegalArgumentException("Required field \"links\" cannot be null");
}
private Photo(NativeObject nativeObject) {
this.id__is_initialized = false;
this.links__is_initialized = false;
this.nativeObject = nativeObject;
}
}
public BusinessPhotoObjectMetadata(int i11, @NonNull List<Photo> list) {
this.count__is_initialized = false;
this.photos__is_initialized = false;
if (list != null) {
this.nativeObject = init(i11, list);
this.count = i11;
this.count__is_initialized = true;
this.photos = list;
this.photos__is_initialized = true;
return;
}
throw new IllegalArgumentException("Required field \"photos\" cannot be null");
}
private BusinessPhotoObjectMetadata(NativeObject nativeObject) {
this.count__is_initialized = false;
this.photos__is_initialized = false;
this.nativeObject = nativeObject;
}
}