org.matheclipse.core.generic
Class PositionConverter
- java.lang.Object
-
- org.matheclipse.core.generic.PositionConverter
-
- All Implemented Interfaces:
- IPositionConverter<IExpr>
public class PositionConverter extends java.lang.Object implements IPositionConverter<IExpr>
-
-
Constructor Summary
Constructors Constructor and Description PositionConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description inttoInt(IExpr position)Convert the object into an integer number >= 0IExprtoObject(int i)Convert the integer position number >= 0 into an object
-
-
-
Method Detail
-
toObject
public IExpr toObject(int i)
Description copied from interface:IPositionConverterConvert the integer position number >= 0 into an object- Specified by:
toObjectin interfaceIPositionConverter<IExpr>
-
toInt
public int toInt(IExpr position)
Description copied from interface:IPositionConverterConvert the object into an integer number >= 0- Specified by:
toIntin interfaceIPositionConverter<IExpr>- Parameters:
position- the object which should be converted- Returns:
- -1 if the conversion is not pssible
-
-
DMelt 3.0 © DataMelt by jWork.ORG