public class Divide<T,C> extends ExtractorBase<T,V,C>
| Modifier and Type | Class and Description |
|---|---|
protected static class |
ArithmeticExtractor.PromotionLevel |
| Modifier and Type | Field and Description |
|---|---|
protected Extractor<T,V,C> |
leftExtractor |
protected Extractor<T,V,C> |
rightExtractor |
cost, costUnit, initialCost, invocations, nanos, totalCost| Constructor and Description |
|---|
Divide(double initialCost,
TimeUnit costUnit,
Extractor<T,Number,C> leftExtractor,
Extractor<T,Number,C> rightExtractor) |
| Modifier and Type | Method and Description |
|---|---|
ComparisonResult |
compareTo(Extractor<T,V,C> obj)
Basic comparisons with True and False.
|
protected Object |
doOp(double n1,
double n2) |
protected Object |
doOp(float n1,
float n2) |
protected Object |
doOp(int n1,
int n2) |
protected Object |
doOp(long n1,
long n2) |
protected V |
doOp(Object o1,
Object o2) |
protected V |
extractInternal(C context,
Map<C,Map<Extractor<T,? super V,C>,? super V>> cache,
T... obj) |
double |
getCost() |
Extractor<T,V,C> |
getLeftExtractor() |
Extractor<T,V,C> |
getRightExtractor() |
int |
hashCode() |
boolean |
isContextDependent() |
Extractor<T,V,C> |
map(int[] map)
Applies mapping to extractor.
|
protected Extractor<T,Number,C> |
newInstance(Extractor<T,Number,C> leftExtractor,
Extractor<T,Number,C> rightExtractor) |
Set<Integer> |
parameterIndices() |
protected ArithmeticExtractor.PromotionLevel |
promote(Number n1,
Number n2) |
String |
toString() |
createCacheEntry, equals, extractprotected Extractor<T,V,C> leftExtractor
protected Extractor<T,V,C> rightExtractor
protected Extractor<T,Number,C> newInstance(Extractor<T,Number,C> leftExtractor, Extractor<T,Number,C> rightExtractor)
public boolean isContextDependent()
isContextDependent in interface Extractor<T,V,C>public Set<Integer> parameterIndices()
parameterIndices in interface Extractor<T,V,C>public ComparisonResult compareTo(Extractor<T,V,C> obj)
ExtractorBasecompareTo in interface Extractor<T,V,C>compareTo in class ExtractorBase<T,V,C>obj - Other extractorprotected V extractInternal(C context, Map<C,Map<Extractor<T,? super V,C>,? super V>> cache, T... obj)
extractInternal in class ExtractorBase<T,V,C>protected ArithmeticExtractor.PromotionLevel promote(Number n1, Number n2)
public double getCost()
getCost in interface Extractor<T,V,C>getCost in class ExtractorBase<T,V,C>public Extractor<T,V,C> map(int[] map)
Mappablepublic Extractor<T,V,C> getLeftExtractor()
getLeftExtractor in interface BinaryExtractor<T,V,C>public Extractor<T,V,C> getRightExtractor()
getRightExtractor in interface BinaryExtractor<T,V,C>