Class Bitfield.Factory

java.lang.Object
com.jogamp.common.util.Bitfield.Factory
Enclosing interface:
Bitfield

public static class Bitfield.Factory extends Object
Simple Bitfield factory for returning the efficient implementation.
  • Constructor Details

    • Factory

      public Factory()
  • Method Details

    • create

      public static Bitfield create(int storageBitSize)
      Creates am efficient Bitfield instance based on the requested storageBitSize.

      Implementation returns a plain 32 bit integer field implementation for storageBitSize ≤ 32 bits or an 32 bit integer array implementation otherwise.

    • synchronize

      public static Bitfield synchronize(Bitfield impl)
      Creates a synchronized Bitfield by wrapping the given Bitfield instance.