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

neureka.NoOpData Maven / Gradle / Ivy

The newest version!
package neureka;

import neureka.devices.Device;
import neureka.devices.host.CPU;
import neureka.dtype.DataType;

final class NoOpData implements Data
{
    static final NoOpData INSTANCE = new NoOpData();

    private NoOpData() {}

    @Override
    public Device owner() {
        return (Device) CPU.get();
    }

    @Override
    public Object getOrNull() {
        return null;
    }

    @Override
    public DataType dataType() {
        return DataType.of(Void.class);
    }

    @Override
    public int usages() {
        return 0;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy