All Downloads are FREE. Search and download functionalities are using the official Maven repository.

fiftyone.devicedetection.hash.engine.onpremise.interop.swig.ResultsBaseSwig Maven / Gradle / Ivy

The newest version!
/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (http://www.swig.org).
 * Version 4.0.2
 *
 * Do not make changes to this file unless you know what you are doing--modify
 * the SWIG interface file instead.
 * ----------------------------------------------------------------------------- */

package fiftyone.devicedetection.hash.engine.onpremise.interop.swig;

public class ResultsBaseSwig implements AutoCloseable {
  private transient long swigCPtr;
  protected transient boolean swigCMemOwn;

  protected ResultsBaseSwig(long cPtr, boolean cMemoryOwn) {
    swigCMemOwn = cMemoryOwn;
    swigCPtr = cPtr;
  }

  protected static long getCPtr(ResultsBaseSwig obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  public synchronized void delete() {
    if (swigCPtr != 0) {
      if (swigCMemOwn) {
        swigCMemOwn = false;
        DeviceDetectionHashEngineModuleJNI.delete_ResultsBaseSwig(swigCPtr);
      }
      swigCPtr = 0;
    }
  }

  @Override
  public void close() {
    this.delete();
  }

  public int getAvailableProperties() {
    return DeviceDetectionHashEngineModuleJNI.ResultsBaseSwig_getAvailableProperties(swigCPtr, this);
  }

  public boolean containsProperty(String propertyName) {
    return DeviceDetectionHashEngineModuleJNI.ResultsBaseSwig_containsProperty(swigCPtr, this, propertyName);
  }

  public VectorStringSwig getProperties() {
    return new VectorStringSwig(DeviceDetectionHashEngineModuleJNI.ResultsBaseSwig_getProperties(swigCPtr, this), true);
  }

  public String getPropertyName(int requiredPropertyIndex) {
    return DeviceDetectionHashEngineModuleJNI.ResultsBaseSwig_getPropertyName(swigCPtr, this, requiredPropertyIndex);
  }

  public VectorStringValuesSwig getValues(String propertyName) {
    return new VectorStringValuesSwig(DeviceDetectionHashEngineModuleJNI.ResultsBaseSwig_getValues__SWIG_0(swigCPtr, this, propertyName), true);
  }

  public VectorStringValuesSwig getValues(int requiredPropertyIndex) {
    return new VectorStringValuesSwig(DeviceDetectionHashEngineModuleJNI.ResultsBaseSwig_getValues__SWIG_1(swigCPtr, this, requiredPropertyIndex), true);
  }

  public StringValueSwig getValueAsString(String propertyName) {
    return new StringValueSwig(DeviceDetectionHashEngineModuleJNI.ResultsBaseSwig_getValueAsString__SWIG_0(swigCPtr, this, propertyName), true);
  }

  public StringValueSwig getValueAsString(int requiredPropertyIndex) {
    return new StringValueSwig(DeviceDetectionHashEngineModuleJNI.ResultsBaseSwig_getValueAsString__SWIG_1(swigCPtr, this, requiredPropertyIndex), true);
  }

  public BoolValueSwig getValueAsBool(String propertyName) {
    return new BoolValueSwig(DeviceDetectionHashEngineModuleJNI.ResultsBaseSwig_getValueAsBool__SWIG_0(swigCPtr, this, propertyName), true);
  }

  public BoolValueSwig getValueAsBool(int requiredPropertyIndex) {
    return new BoolValueSwig(DeviceDetectionHashEngineModuleJNI.ResultsBaseSwig_getValueAsBool__SWIG_1(swigCPtr, this, requiredPropertyIndex), true);
  }

  public IntegerValueSwig getValueAsInteger(String propertyName) {
    return new IntegerValueSwig(DeviceDetectionHashEngineModuleJNI.ResultsBaseSwig_getValueAsInteger__SWIG_0(swigCPtr, this, propertyName), true);
  }

  public IntegerValueSwig getValueAsInteger(int requiredPropertyIndex) {
    return new IntegerValueSwig(DeviceDetectionHashEngineModuleJNI.ResultsBaseSwig_getValueAsInteger__SWIG_1(swigCPtr, this, requiredPropertyIndex), true);
  }

  public DoubleValueSwig getValueAsDouble(String propertyName) {
    return new DoubleValueSwig(DeviceDetectionHashEngineModuleJNI.ResultsBaseSwig_getValueAsDouble__SWIG_0(swigCPtr, this, propertyName), true);
  }

  public DoubleValueSwig getValueAsDouble(int requiredPropertyIndex) {
    return new DoubleValueSwig(DeviceDetectionHashEngineModuleJNI.ResultsBaseSwig_getValueAsDouble__SWIG_1(swigCPtr, this, requiredPropertyIndex), true);
  }

  public StringValueSwig getValueAsString(byte[] bytes) {
    return DeviceDetectionHashEngineModule.Results_GetValueAsString(this, bytes);
  }
  public VectorStringValuesSwig getValues(byte[] bytes) {
    return DeviceDetectionHashEngineModule.Results_GetValues(this, bytes);
  }
  public BoolValueSwig getValueAsBool(byte[] bytes) {
    return DeviceDetectionHashEngineModule.Results_GetValueAsBool(this, bytes);
  }
  public IntegerValueSwig getValueAsInteger(byte[] bytes) {
    return DeviceDetectionHashEngineModule.Results_GetValueAsInteger(this, bytes);
  }
  public DoubleValueSwig getValueAsDouble(byte[] bytes) {
    return DeviceDetectionHashEngineModule.Results_GetValueAsDouble(this, bytes);
  }
  public boolean containsProperty(byte[] bytes) {
    return DeviceDetectionHashEngineModule.Results_ContainsProperty(this, bytes);
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy