Пример #1
0
 public static <_B> PartitionScheduleT.Builder<_B> copyOf(
     final PartitionScheduleT _other,
     final PropertyTree _propertyTree,
     final PropertyTreeUse _propertyTreeUse) {
   final PartitionScheduleT.Builder<_B> _newBuilder =
       new PartitionScheduleT.Builder<_B>(null, null, false);
   _other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse);
   return _newBuilder;
 }
Пример #2
0
 @Override
 public PartitionScheduleT createCopy() {
   final PartitionScheduleT _newObject;
   try {
     _newObject = ((PartitionScheduleT) super.clone());
   } catch (CloneNotSupportedException e) {
     throw new RuntimeException(e);
   }
   _newObject.value = this.value;
   _newObject.description = this.description;
   _newObject.name = this.name;
   _newObject.timeBudgetUs = this.timeBudgetUs;
   _newObject.timePeriodUs = this.timePeriodUs;
   return _newObject;
 }
Пример #3
0
 @Override
 public PartitionScheduleT createCopy(
     final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
   final PartitionScheduleT _newObject;
   try {
     _newObject = ((PartitionScheduleT) super.clone());
   } catch (CloneNotSupportedException e) {
     throw new RuntimeException(e);
   }
   final PropertyTree valuePropertyTree =
       ((_propertyTree == null) ? null : _propertyTree.get("value"));
   if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)
       ? (valuePropertyTree != null)
       : ((valuePropertyTree == null) || (!valuePropertyTree.isLeaf())))) {
     _newObject.value = this.value;
   }
   final PropertyTree descriptionPropertyTree =
       ((_propertyTree == null) ? null : _propertyTree.get("description"));
   if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)
       ? (descriptionPropertyTree != null)
       : ((descriptionPropertyTree == null) || (!descriptionPropertyTree.isLeaf())))) {
     _newObject.description = this.description;
   }
   final PropertyTree namePropertyTree =
       ((_propertyTree == null) ? null : _propertyTree.get("name"));
   if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)
       ? (namePropertyTree != null)
       : ((namePropertyTree == null) || (!namePropertyTree.isLeaf())))) {
     _newObject.name = this.name;
   }
   final PropertyTree timeBudgetUsPropertyTree =
       ((_propertyTree == null) ? null : _propertyTree.get("timeBudgetUs"));
   if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)
       ? (timeBudgetUsPropertyTree != null)
       : ((timeBudgetUsPropertyTree == null) || (!timeBudgetUsPropertyTree.isLeaf())))) {
     _newObject.timeBudgetUs = this.timeBudgetUs;
   }
   final PropertyTree timePeriodUsPropertyTree =
       ((_propertyTree == null) ? null : _propertyTree.get("timePeriodUs"));
   if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)
       ? (timePeriodUsPropertyTree != null)
       : ((timePeriodUsPropertyTree == null) || (!timePeriodUsPropertyTree.isLeaf())))) {
     _newObject.timePeriodUs = this.timePeriodUs;
   }
   return _newObject;
 }
Пример #4
0
 public static <_B> PartitionScheduleT.Builder<_B> copyOf(final PartitionScheduleT _other) {
   final PartitionScheduleT.Builder<_B> _newBuilder =
       new PartitionScheduleT.Builder<_B>(null, null, false);
   _other.copyTo(_newBuilder);
   return _newBuilder;
 }