Class StringContainer

java.lang.Object
com.cryptoalgo.oursql.model.db.data.Container<String>
com.cryptoalgo.oursql.model.db.data.StringContainer

public class StringContainer extends Container<String>
A container for various text SQL types
  • Constructor Details

    • StringContainer

      public StringContainer(String boxValue)
      Create an instance of the container with raw content.
      Parameters:
      boxValue - Raw content to unbox into this container
  • Method Details

    • unbox

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

      public boolean isValid(String value)
      Specified by:
      isValid in class Container<String>
      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<String>