Class PlaceholderContainer

java.lang.Object
com.cryptoalgo.oursql.model.db.data.Container<Void>
com.cryptoalgo.oursql.model.db.data.PlaceholderContainer

public class PlaceholderContainer extends Container<Void>
Dummy container for unsupported values
  • Constructor Details

    • PlaceholderContainer

      public PlaceholderContainer()
      Dummy constructor for maximum placeholder-ness
    • PlaceholderContainer

      public PlaceholderContainer(String boxValue)
      Create an instance of PlaceholderContainer.
      Parameters:
      boxValue - Value to box, unused
  • Method Details

    • unbox

      protected Void unbox(String val)
      Description copied from class: Container
      "Unbox" a raw string to the boxed type
      Specified by:
      unbox in class Container<Void>
      Parameters:
      val - Raw string for unboxing
      Returns:
      Boxed type representing the string
    • isEditable

      public boolean isEditable()
      Overrides:
      isEditable in class Container<Void>
      Returns:
      True if editing fields of this container type should be allowed
    • isValid

      public boolean isValid(String value)
      Specified by:
      isValid in class Container<Void>
      Parameters:
      value - Value to be checked
      Returns:
      true if value can be cast to the type of this container
    • toString

      public String toString()
      Specified by:
      toString in class Container<Void>