コード例 #1
0
 public void setHasTimeRangeValue(Float minValue, Float maxValue) {
   TimeRange timeRange = new TimeRange();
   MilliSecond minValueMs = new MilliSecond();
   MilliSecond maxValueMs = new MilliSecond();
   minValueMs.setValue(minValue);
   maxValueMs.setValue(maxValue);
   timeRange.setMin(minValueMs);
   timeRange.setMax(maxValueMs);
   if (getCloudResponseTime() == null) {
     CloudResponseTime cloudResponseTime = new CloudResponseTime();
     setCloudResponseTime(cloudResponseTime);
   }
   getCloudResponseTime().setHasTimeRangeValue(timeRange);
 }
コード例 #2
0
 public void setMinValueMs(Float minValue) {
   if (getCloudResponseTime() != null && getCloudResponseTime().getHasTimeRangeValue() != null) {
     MilliSecond minValueMs = new MilliSecond();
     minValueMs.setValue(minValue);
     getCloudResponseTime().getHasTimeRangeValue().setMin(minValueMs);
   } else {
     if (getCloudResponseTime() == null) {
       CloudResponseTime cloudResponseTime = new CloudResponseTime();
       setCloudResponseTime(cloudResponseTime);
     }
     if (getCloudResponseTime().getHasTimeRangeValue() == null) {
       TimeRange timeRange = new TimeRange();
       MilliSecond minValueMs = new MilliSecond();
       minValueMs.setValue(minValue);
       timeRange.setMin(minValueMs);
       getCloudResponseTime().setHasTimeRangeValue(timeRange);
     }
   }
 }