Interface IScratchVariables


public interface IScratchVariables
  • Method Details

    • create

      <TYPE> void create(IScratchClass<TYPE> scratchClass, String identifier, TYPE initialValue)
    • has

      <TYPE> boolean has(IScratchClass<TYPE> scratchClass, String identifier)
    • get

      <TYPE> TYPE get(IScratchClass<TYPE> scratchClass, String identifier)
    • getFallback

      <TYPE> TYPE getFallback(IScratchClass<TYPE> scratchClass)
    • set

      <TYPE> boolean set(IScratchClass<TYPE> scratchClass, String identifier, TYPE value)
      Type Parameters:
      TYPE -
      Parameters:
      scratchClass -
      identifier -
      value -
      Returns:
      Whether the variable exists and was set
    • createList

      <TYPE> void createList(IScratchClass<TYPE> scratchClass, String identifier)
    • hasList

      <TYPE> boolean hasList(IScratchClass<TYPE> scratchClass, String identifier)
    • getList

      <TYPE> List<TYPE> getList(IScratchClass<TYPE> scratchClass, String identifier)
      Type Parameters:
      TYPE -
      Parameters:
      scratchClass -
      identifier -
      Returns:
      Empty List if there is no List by the given identifier