geode-core/src/main/java/org/apache/geode/management/internal/cli/functions/RegionAlterFunction.java
private ExpirationAttributes parseExpirationAttributes(
      RegionFunctionArgs.ExpirationAttrs newExpirationAttrs,
      ExpirationAttributes oldExpirationAttributes) {

    ExpirationAction action = oldExpirationAttributes.getAction();
    int timeout = oldExpirationAttributes.getTimeout();

    if (newExpirationAttrs.getTime() != null) {
      timeout = newExpirationAttrs.getTime();
    }
    if (newExpirationAttrs.getAction() != null) {
      action = newExpirationAttrs.getAction();
    }

    return new ExpirationAttributes(timeout, action);
  }
/**
   * Converts the expiration attributes passed as arguments from the command to the function into a
   * type suitable for applying to a Region.
   * 
   * @param newExpirationAttrs Attributes supplied by the command
   * @param oldExpirationAttributes Attributes currently applied to the Region.
   * 
   * @return A new pair of expiration attributes taken from the command if it was given or the
   *         current value from the Region if it was not.
   */
Converts the expiration attributes passed as arguments from the command to the function into a
type suitable for applying to a Region.

@param newExpirationAttrs Attributes supplied by the command
@param oldExpirationAttributes Attributes currently applied to the Region.

@return A new pair of expiration attributes taken from the command if it was given or the
current value from the Region if it was not.
Converts the expiration attributes passed as arguments from the command to the function into a type suitable for applying to a Region . @param newExpirationAttrs Attributes supplied by the command @param oldExpirationAttributes Attributes currently applied to the Region . @return A new pair of expiration attributes taken from the command if it was given or the current value from the Region if it was not .
private ExpirationAttributes parseExpirationAttributes(
      RegionFunctionArgs.ExpirationAttrs newExpirationAttrs,
      ExpirationAttributes oldExpirationAttributes) {
    ExpirationAction action = oldExpirationAttributes.getAction();
    int timeout = oldExpirationAttributes.getTimeout();
    if (newExpirationAttrs.getTime() != null) {
      timeout = newExpirationAttrs.getTime();
    }
    if (newExpirationAttrs.getAction() != null) {
      action = newExpirationAttrs.getAction();
    }
    return new ExpirationAttributes(timeout, action);
  }
private ExpirationAttributes parseExpirationAttributes ( RegionFunctionArgs . ExpirationAttrs newExpirationAttrs , ExpirationAttributes oldExpirationAttributes ) { ExpirationAction action = oldExpirationAttributes . getAction ( ) ; int timeout = oldExpirationAttributes . getTimeout ( ) ; if ( newExpirationAttrs . getTime ( ) != null ) { timeout = newExpirationAttrs . getTime ( ) ; } if ( newExpirationAttrs . getAction ( ) != null ) { action = newExpirationAttrs . getAction ( ) ; } return new ExpirationAttributes ( timeout , action ) ; }
Converts the expiration attributes passed as arguments from the command to the function into a
 type suitable for applying to a Region.
Converts the expiration attributes passed as arguments from the command to the function into a type suitable for applying to a Region .