Interface ConversionMatrix

All Known Implementing Classes:
ConversionCodeGenerator, DatatypeConverter

public interface ConversionMatrix
A ConversionMatric holds the information if the value of a datatype can be converted into the value of another datatype.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns true if a value of datatype from can be converted into one of datatype to.
  • Method Details

    • canConvert

      boolean canConvert(Datatype from, Datatype to)
      Returns true if a value of datatype from can be converted into one of datatype to. If datatype from and to are equal, the method returns true.
      Throws:
      IllegalArgumentException - if either from or to is null.