Interface IntegerMapping<L extends ValueLayout>

Type Parameters:
L - the integer layout type
All Superinterfaces:
DataMapping<L>, Mapping<L>, PrimitiveMapping<L>
All Known Subinterfaces:
Mapping.Byte, Mapping.CLong, Mapping.Int, Mapping.Long, Mapping.Short, Mapping.Size
All Known Implementing Classes:
Mapping.Char

public sealed interface IntegerMapping<L extends ValueLayout> extends PrimitiveMapping<L> permits Mapping.Byte, Mapping.Char, Mapping.Short, Mapping.Int, Mapping.Long, Mapping.CLong, Mapping.Size
A mapping for an integer layout.
  • Method Details

    • signed

      boolean signed()
      Returns whether the integer is signed (true) or unsigned (false).
      Returns:
      whether the integer is signed
    • typedef

      IntegerMapping<L> typedef(String name)
      Description copied from interface: Mapping
      Creates a new instance of this mapping with the specified type name.
      Specified by:
      typedef in interface Mapping<L extends ValueLayout>
      Specified by:
      typedef in interface PrimitiveMapping<L extends ValueLayout>
      Returns:
      the new mapping