程序包 org.bukkit.persistence

# 类 ListPersistentDataTypeProvider

java.lang.Object
org.bukkit.persistence.ListPersistentDataTypeProvider

public final class ListPersistentDataTypeProvider extends Object
A provider for list persistent data types that represent the known primitive types exposed by `PersistentDataType`.

- ## 方法概要

  修饰符和类型
  方法
  说明
  `@NotNull ListPersistentDataType<Byte,Boolean>`
  `booleans()`
  Provides a shared `ListPersistentDataType` that is capable of storing lists of booleans.
  `@NotNull ListPersistentDataType<byte[],byte[]>`
  `byteArrays()`
  Provides a shared `ListPersistentDataType` that is capable of storing lists of byte arrays.
  `@NotNull ListPersistentDataType<Byte,Byte>`
  `bytes()`
  Provides a shared `ListPersistentDataType` that is capable of storing lists of bytes.
  `@NotNull ListPersistentDataType<PersistentDataContainer,PersistentDataContainer>`
  `dataContainers()`
  Provides a shared `ListPersistentDataType` that is capable of persistent data containers..
  `@NotNull ListPersistentDataType<Double,Double>`
  `doubles()`
  Provides a shared `ListPersistentDataType` that is capable of storing lists of doubles.
  `@NotNull ListPersistentDataType<Float,Float>`
  `floats()`
  Provides a shared `ListPersistentDataType` that is capable of storing lists of floats.
  `@NotNull ListPersistentDataType<int[],int[]>`
  `integerArrays()`
  Provides a shared `ListPersistentDataType` that is capable of storing lists of int arrays.
  `@NotNull ListPersistentDataType<Integer,Integer>`
  `integers()`
  Provides a shared `ListPersistentDataType` that is capable of storing lists of integers.
  `<P, C> @NotNull ListPersistentDataType<P,C>`
  `listTypeFrom(@NotNull PersistentDataType<P,C> elementType)`
  Constructs a new list persistent data type given any persistent data type for its elements.
  `@NotNull ListPersistentDataType<long[],long[]>`
  `longArrays()`
  Provides a shared `ListPersistentDataType` that is capable of storing lists of long arrays.
  `@NotNull ListPersistentDataType<Long,Long>`
  `longs()`
  Provides a shared `ListPersistentDataType` that is capable of storing lists of longs.
  `@NotNull ListPersistentDataType<Short,Short>`
  `shorts()`
  Provides a shared `ListPersistentDataType` that is capable of storing lists of shorts.
  `@NotNull ListPersistentDataType<String,String>`
  `strings()`
  Provides a shared `ListPersistentDataType` that is capable of storing lists of strings.

  ### 从类继承的方法 java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 方法详细资料

  - ### bytes

    @NotNull public @NotNull ListPersistentDataType<Byte,Byte> bytes()
    Provides a shared `ListPersistentDataType` that is capable of storing lists of bytes.
    返回:
      the persistent data type.

  - ### shorts

    @NotNull public @NotNull ListPersistentDataType<Short,Short> shorts()
    Provides a shared `ListPersistentDataType` that is capable of storing lists of shorts.
    返回:
      the persistent data type.

  - ### integers

    @NotNull public @NotNull ListPersistentDataType<Integer,Integer> integers()
    Provides a shared `ListPersistentDataType` that is capable of storing lists of integers.
    返回:
      the persistent data type.

  - ### longs

    @NotNull public @NotNull ListPersistentDataType<Long,Long> longs()
    Provides a shared `ListPersistentDataType` that is capable of storing lists of longs.
    返回:
      the persistent data type.

  - ### floats

    @NotNull public @NotNull ListPersistentDataType<Float,Float> floats()
    Provides a shared `ListPersistentDataType` that is capable of storing lists of floats.
    返回:
      the persistent data type.

  - ### doubles

    @NotNull public @NotNull ListPersistentDataType<Double,Double> doubles()
    Provides a shared `ListPersistentDataType` that is capable of storing lists of doubles.
    返回:
      the persistent data type.

  - ### booleans

    @NotNull public @NotNull ListPersistentDataType<Byte,Boolean> booleans()
    Provides a shared `ListPersistentDataType` that is capable of storing lists of booleans.
    返回:
      the persistent data type.

  - ### strings

    @NotNull public @NotNull ListPersistentDataType<String,String> strings()
    Provides a shared `ListPersistentDataType` that is capable of storing lists of strings.
    返回:
      the persistent data type.

  - ### byteArrays

    @NotNull public @NotNull ListPersistentDataType<byte[],byte[]> byteArrays()
    Provides a shared `ListPersistentDataType` that is capable of storing lists of byte arrays.
    返回:
      the persistent data type.

  - ### integerArrays

    @NotNull public @NotNull ListPersistentDataType<int[],int[]> integerArrays()
    Provides a shared `ListPersistentDataType` that is capable of storing lists of int arrays.
    返回:
      the persistent data type.

  - ### longArrays

    @NotNull public @NotNull ListPersistentDataType<long[],long[]> longArrays()
    Provides a shared `ListPersistentDataType` that is capable of storing lists of long arrays.
    返回:
      the persistent data type.

  - ### dataContainers

    @NotNull public @NotNull ListPersistentDataType<PersistentDataContainer,PersistentDataContainer> dataContainers()
    Provides a shared `ListPersistentDataType` that is capable of persistent data containers..
    返回:
      the persistent data type.

  - ### listTypeFrom

    @NotNull public <P, C> @NotNull ListPersistentDataType<P,C> listTypeFrom(@NotNull @NotNull PersistentDataType<P,C> elementType)
    Constructs a new list persistent data type given any persistent data type for its elements.
    类型参数:
      `P` - the generic type of the primitives stored in the list.
      `C` - the generic type of the complex values yielded back by the persistent data types.
    参数:
      `elementType` - the persistent data type that is capable of writing/reading the elements of the list.
    返回:
      the created list persistent data type.