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

io.opentimeline.OTIOObject Maven / Gradle / Ivy

// SPDX-License-Identifier: Apache-2.0
// Copyright Contributors to the OpenTimelineIO Project.

package io.opentimeline;

/**
 * Base class for all OTIO objects.
 */
public class OTIOObject implements AutoCloseable {
    public OTIONative nativeManager;

    public OTIONative getNativeManager() {
        return nativeManager;
    }

    static {
        LibraryLoader.load("jotio");
    }

    @Override
    public void close() throws Exception {
        this.getNativeManager().close();
    }

    @Override
    public int hashCode() {
        return Long.hashCode(nativeManager.getOTIOObjectNativeHandle());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy