Package icyllis.arc3d.compiler.tree

# Class Type.CoercionCost

java.lang.Object
icyllis.arc3d.compiler.tree.Type.CoercionCost

Enclosing class:
  `Type`

public static final class Type.CoercionCost extends Object
CoercionCost. The values are packed into a long value.

See Also:
  - `Type.getCoercionCost(Type)`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `CoercionCost()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static boolean`
  `accept(long cost, boolean allowNarrowing)`
  `static int`
  `compare(long lhs, long rhs)`
  `static long`
  `free()`
  No cost.
  `static long`
  `narrowing(int cost)`
  `static long`
  `plus(long lhs, long rhs)`
  `static long`
  `saturate()`
  `static long`
  `widening(int cost)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### CoercionCost

    public CoercionCost()

- ## Method Details

  - ### free

    public static long free()
    No cost.

  - ### widening

    public static long widening(int cost)

  - ### narrowing

    public static long narrowing(int cost)

  - ### saturate

    public static long saturate()

  - ### accept

    public static boolean accept(long cost, boolean allowNarrowing)

  - ### plus

    public static long plus(long lhs, long rhs)

  - ### compare

    public static int compare(long lhs, long rhs)