示例#1
0
 /**
  * Copies all state of this object to a builder. This method is used by the {@link #copyOf} method
  * and should not be called directly by client code.
  *
  * @param _other A builder instance to which the state of this object will be copied.
  */
 public <_B> void copyTo(final PartitionScheduleT.Builder<_B> _other) {
   _other.value = this.value;
   _other.description = this.description;
   _other.name = this.name;
   _other.timeBudgetUs = this.timeBudgetUs;
   _other.timePeriodUs = this.timePeriodUs;
 }
示例#2
0
 /**
  * Copies all state of this object to a builder. This method is used by the {@link #copyOf} method
  * and should not be called directly by client code.
  *
  * @param _other A builder instance to which the state of this object will be copied.
  */
 public <_B> void copyTo(
     final PartitionScheduleT.Builder<_B> _other,
     final PropertyTree _propertyTree,
     final PropertyTreeUse _propertyTreeUse) {
   final PropertyTree valuePropertyTree =
       ((_propertyTree == null) ? null : _propertyTree.get("value"));
   if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)
       ? (valuePropertyTree != null)
       : ((valuePropertyTree == null) || (!valuePropertyTree.isLeaf())))) {
     _other.value = this.value;
   }
   final PropertyTree descriptionPropertyTree =
       ((_propertyTree == null) ? null : _propertyTree.get("description"));
   if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)
       ? (descriptionPropertyTree != null)
       : ((descriptionPropertyTree == null) || (!descriptionPropertyTree.isLeaf())))) {
     _other.description = this.description;
   }
   final PropertyTree namePropertyTree =
       ((_propertyTree == null) ? null : _propertyTree.get("name"));
   if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)
       ? (namePropertyTree != null)
       : ((namePropertyTree == null) || (!namePropertyTree.isLeaf())))) {
     _other.name = this.name;
   }
   final PropertyTree timeBudgetUsPropertyTree =
       ((_propertyTree == null) ? null : _propertyTree.get("timeBudgetUs"));
   if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)
       ? (timeBudgetUsPropertyTree != null)
       : ((timeBudgetUsPropertyTree == null) || (!timeBudgetUsPropertyTree.isLeaf())))) {
     _other.timeBudgetUs = this.timeBudgetUs;
   }
   final PropertyTree timePeriodUsPropertyTree =
       ((_propertyTree == null) ? null : _propertyTree.get("timePeriodUs"));
   if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)
       ? (timePeriodUsPropertyTree != null)
       : ((timePeriodUsPropertyTree == null) || (!timePeriodUsPropertyTree.isLeaf())))) {
     _other.timePeriodUs = this.timePeriodUs;
   }
 }