Coverage Report - com.sun.javafx.runtime.location.DoubleConstant
 
Classes in this File Line Coverage Branch Coverage Complexity
DoubleConstant
80%
8/10
N/A
0
 
 1  
 package com.sun.javafx.runtime.location;
 2  
 
 3  
 /**
 4  
  * DoubleConstant
 5  
  *
 6  
  * @author Brian Goetz
 7  
  */
 8  3
 public class DoubleConstant extends AbstractConstantLocation<Double> implements DoubleLocation {
 9  
     private double $value;
 10  
 
 11  
     public static DoubleLocation make(double value) {
 12  19
         return new DoubleConstant(value);
 13  
     }
 14  
 
 15  19
     protected DoubleConstant(double value) {
 16  19
         this.$value = value;
 17  19
     }
 18  
 
 19  
 
 20  
     public double getAsDouble() {
 21  19
         return $value;
 22  
     }
 23  
 
 24  
     public Double get() {
 25  3
         return $value;
 26  
     }
 27  
 
 28  
     public double setAsDouble(double value) {
 29  0
         throw new UnsupportedOperationException();
 30  
     }
 31  
 
 32  
     public double setAsDoubleFromLiteral(double value) {
 33  0
         throw new UnsupportedOperationException();
 34  
     }
 35  
 
 36  2
     public void addChangeListener(DoubleChangeListener listener) { }
 37  
 }