Package com.microblink.entities
Class Entity.Result
- java.lang.Object
-
- com.microblink.entities.Entity.Result
-
- All Implemented Interfaces:
android.os.Parcelable
- Direct Known Subclasses:
Processor.Result
,Recognizer.Result
- Enclosing class:
- Entity<T extends Entity.Result>
public abstract static class Entity.Result extends java.lang.Object implements android.os.Parcelable
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Object
mOwner
-
Constructor Summary
Constructors Modifier Constructor Description protected
Result(long nativeResult)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Entity.Result
clone()
Create a copy of the result.int
describeContents()
protected abstract void
deserializeFromByteArray(byte[] arr)
protected void
finalize()
long
getNativeContext()
protected abstract boolean
isEmpty()
protected void
readFromParcel(android.os.Parcel in)
protected abstract byte[]
serializeToByteArray()
protected abstract void
terminateNative(long nativeContext)
void
writeToParcel(android.os.Parcel dest, int i)
-
-
-
Method Detail
-
getNativeContext
public final long getNativeContext()
-
isEmpty
protected abstract boolean isEmpty()
-
serializeToByteArray
@Nullable protected abstract byte[] serializeToByteArray()
-
deserializeFromByteArray
protected abstract void deserializeFromByteArray(@NonNull byte[] arr)
-
clone
@NonNull public abstract Entity.Result clone()
Create a copy of the result. This is required in order to retain the result even after owning entity has mutated it.- Overrides:
clone
in classjava.lang.Object
- Returns:
- a copy of the result
-
describeContents
public final int describeContents()
- Specified by:
describeContents
in interfaceandroid.os.Parcelable
-
writeToParcel
@CallSuper public void writeToParcel(@NonNull android.os.Parcel dest, int i)
- Specified by:
writeToParcel
in interfaceandroid.os.Parcelable
-
readFromParcel
@CallSuper protected void readFromParcel(@NonNull android.os.Parcel in)
-
terminateNative
protected abstract void terminateNative(long nativeContext)
-
finalize
protected void finalize() throws java.lang.Throwable
- Overrides:
finalize
in classjava.lang.Object
- Throws:
java.lang.Throwable
-
-