Class BaseBoxedCoercer

All Implemented Interfaces:
ICoercer
Direct Known Subclasses:
BooleanCoercer, ByteCoercer, CharCoercer, DoubleCoercer, FloatCoercer, IntCoercer, LongCoercer, ShortCoercer

public abstract class BaseBoxedCoercer extends StandardCoercer
  • Constructor Details

    • BaseBoxedCoercer

      public BaseBoxedCoercer()
  • Method Details

    • getPriority

      public int getPriority(IType to, IType from)
      Specified by:
      getPriority in interface ICoercer
      Overrides:
      getPriority in class StandardCoercer
      Returns:
      a value between 0 and MAX_PRIORITY, inclusive that indicates the priority of this coercer when resolving overloaded methods. Typically a coercer should return 0, but coercers that have a high affinity between the target and coerced type, such as primitives, can have higher priorities.