Package jolt

Class Jolt

java.lang.Object
jolt.Jolt

public final class Jolt extends Object
Jolt relies on preview features of the Java platform:
Programs can only use Jolt when preview features are enabled.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
  • Field Details

  • Method Details

    • load

      public static void load()
      Loads the native libraries from the JAR.
    • features

      public static JoltFeatures features()
    • featureSet

      public static Set<JoltFeature> featureSet()
    • doublePrecision

      public static boolean doublePrecision()
    • tryingDoublePrecision

      public static RuntimeException tryingDoublePrecision()
    • assertSinglePrecision

      public static void assertSinglePrecision()
    • tryingSinglePrecision

      public static RuntimeException tryingSinglePrecision()
    • ptr

      public static MemoryAddressPREVIEW ptr(@Nullable JoltNative obj)
    • ofArray

      public static MemorySegmentPREVIEW ofArray(SegmentAllocatorPREVIEW alloc, JoltNative[] objs)
    • arrayOf

      public static int[] arrayOf(Collection<? extends Integer> collection)
    • use

      public static <T extends Deletable> void use(T obj, Consumer<T> block)
    • use

      public static <T extends Deletable, R> R use(T obj, Function<T,R> block)
    • assertDoublePrecision

      public static void assertDoublePrecision()
    • registerDefaultAllocator

      public static void registerDefaultAllocator()
    • createFactory

      public static void createFactory()
    • destroyFactory

      public static void destroyFactory()
    • registerTypes

      public static void registerTypes()