com.litongjava.whipser.cpp.java.params.CBool Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of whipser-cpp-java Show documentation
Show all versions of whipser-cpp-java Show documentation
Java JNI Bindings for Whisper
The newest version!
package com.litongjava.whipser.cpp.java.params;
import java.util.function.BooleanSupplier;
import com.sun.jna.IntegerType;
@SuppressWarnings("serial")
public class CBool extends IntegerType implements BooleanSupplier {
public static final int SIZE = 1;
public static final CBool FALSE = new CBool(0);
public static final CBool TRUE = new CBool(1);
public CBool() {
this(0);
}
public CBool(long value) {
super(SIZE, value, true);
}
@Override
public boolean getAsBoolean() {
return intValue() == 1;
}
@Override
public String toString() {
return intValue() == 1 ? "true" : "false";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy