Package eu.simuline.octave.type.cast
Class DoubleToComplexCaster
- java.lang.Object
-
- eu.simuline.octave.type.cast.DoubleToComplexCaster
-
- All Implemented Interfaces:
Caster<OctaveDouble,OctaveComplex>
public final class DoubleToComplexCaster extends Object implements Caster<OctaveDouble,OctaveComplex>
Cast OctaveDouble to OctaveComplex.
-
-
Constructor Summary
Constructors Constructor Description DoubleToComplexCaster()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OctaveComplex
cast(OctaveDouble from)
Class<OctaveDouble>
from()
Class<OctaveComplex>
to()
-
-
-
Method Detail
-
cast
public OctaveComplex cast(OctaveDouble from)
- Specified by:
cast
in interfaceCaster<OctaveDouble,OctaveComplex>
- Parameters:
from
- object to convert- Returns:
- Converted object
-
from
public Class<OctaveDouble> from()
- Specified by:
from
in interfaceCaster<OctaveDouble,OctaveComplex>
- Returns:
- Class to cast from
-
to
public Class<OctaveComplex> to()
- Specified by:
to
in interfaceCaster<OctaveDouble,OctaveComplex>
- Returns:
- Class to cast to
-
-