Class WeightedCaster

java.lang.Object
xyz.cofe.typeconv.WeightedCaster
All Implemented Interfaces:
java.util.function.Function<java.lang.Object,​java.lang.Object>, GetWeight
Direct Known Subclasses:
MutableWeightedCaster

public abstract class WeightedCaster
extends java.lang.Object
implements java.util.function.Function<java.lang.Object,​java.lang.Object>, GetWeight
Взвешенный caster для преборазования веса
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected java.lang.Double weight  
  • Constructor Summary

    Constructors 
    Constructor Description
    WeightedCaster()  
    WeightedCaster​(double weight)  
  • Method Summary

    Modifier and Type Method Description
    java.lang.Double getWeight()
    Возвращает вес преобразования

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface java.util.function.Function

    andThen, apply, compose
  • Field Details

    • weight

      protected java.lang.Double weight
  • Constructor Details

  • Method Details

    • getWeight

      public java.lang.Double getWeight()
      Description copied from interface: GetWeight
      Возвращает вес преобразования
      Specified by:
      getWeight in interface GetWeight
      Returns:
      вес преобразования