Toggle navigation
Home
com.speedment.runtime.compute.ToInt to com.speedment.runtime.compute.ToLong
No. of Instances - 3
No. of Commits - 1
No. of Projects - {'speedment'}
Hierarchy/Composition: SIBLING
Primitive Info: -
NameSpace: Internal -> Internal
Mapping:
Rename Variable
map
to
mapLong
map
to
mapLong
Cascading Type Change (Similar)
ToIntMapper<T,ToInt<T>,IntUnaryOperator>
to
ToLongMapper<T,ToLong<T>,LongUnaryOperator>
int
to
long
ToIntMapper<T,ToInt<T>,IntUnaryOperator>
to
ToLongMapper<T,ToLong<T>,LongUnaryOperator>
int
to
long
ToIntPower<T,ToInt<T>>
to
ToIntPower<T,ToLong<T>>
Add or Remove Method invocation
this.mapper.applyAsInt(this.inner.applyAsInt(object))
to
this.mapper.applyAsLong(this.inner.applyAsLong(object))
this.mapper.applyAsInt(this.inner.applyAsInt(object))
to
this.mapper.applyAsLong(this.inner.applyAsLong(object))
inner.applyAsInt(object)
to
inner.applyAsLong(object)
Update Anonymous class
{ @Override public int applyAsInt( T object){ return this.mapper.applyAsInt(this.inner.applyAsInt(object)); } @Override public MapperType mapperType(){ return MapperType.INT_TO_INT; } }
to
{ @Override public long applyAsLong( T object){ return this.mapper.applyAsLong(this.inner.applyAsLong(object)); } @Override public MapperType mapperType(){ return MapperType.LONG_TO_LONG; } }
{ @Override public int applyAsInt( T object){ return this.mapper.applyAsInt(this.inner.applyAsInt(object)); } @Override public MapperType mapperType(){ return MapperType.INT_TO_INT; } }
to
{ @Override public long applyAsLong( T object){ return this.mapper.applyAsLong(this.inner.applyAsLong(object)); } @Override public MapperType mapperType(){ return MapperType.LONG_TO_LONG; } }
{ @Override public double applyAsDouble( T object){ final int p=power.applyAsInt(object); if (p == 0) return 1; final int value=inner.applyAsInt(object); switch (p) { case 1: return value; case 2: return value * value; case 3: return value * value * value; case 4: return value * value * value* value; case 5: return value * value * value* value* value; case -1: return 1 / value; default : return Math.pow(value,p); } } }
to
{ @Override public double applyAsDouble( T object){ final int p=power.applyAsInt(object); if (p == 0) return 1; final long value=inner.applyAsLong(object); switch (p) { case 1: return value; case 2: return value * value; case 3: return value * value * value; case 4: return value * value * value* value; case 5: return value * value * value* value* value; case -1: return 1 / value; default : return Math.pow(value,p); } } }