javapns/src/main/java/javapns/notification/Payload.java
/**
	 * Validate if the estimated payload size after adding a given property will be allowed.
	 * For performance reasons, this estimate is not as reliable as actually adding
	 * the property and checking the payload size afterwards.
	 *
	 * @param propertyName the name of the property to use for calculating the estimation
	 * @param propertyValue the value of the property to use for calculating the estimation
	 * @return true if the payload size is not expected to exceed the maximum allowed, false if it might be too big
	 */
Validate if the estimated payload size after adding a given property will be allowed.
For performance reasons, this estimate is not as reliable as actually adding
the property and checking the payload size afterwards.

@param propertyName the name of the property to use for calculating the estimation
@param propertyValue the value of the property to use for calculating the estimation
@return true if the payload size is not expected to exceed the maximum allowed, false if it might be too big
Validate if the estimated payload size after adding a given property will be allowed . For performance reasons this estimate is not as reliable as actually adding the property and checking the payload size afterwards . @param propertyName the name of the property to use for calculating the estimation @param propertyValue the value of the property to use for calculating the estimation @return true if the payload size is not expected to exceed the maximum allowed false if it might be too big
public boolean isEstimatedPayloadSizeAllowedAfterAdding(String propertyName, Object propertyValue) {
		int maximumPayloadSize = getMaximumPayloadSize();
		int estimatedPayloadSize = estimatePayloadSizeAfterAdding(propertyName, propertyValue);
		boolean estimatedToBeAllowed = estimatedPayloadSize <= maximumPayloadSize;
		return estimatedToBeAllowed;
	}
public boolean isEstimatedPayloadSizeAllowedAfterAdding ( String propertyName , Object propertyValue ) { int maximumPayloadSize = getMaximumPayloadSize ( ) ; int estimatedPayloadSize = estimatePayloadSizeAfterAdding ( propertyName , propertyValue ) ; boolean estimatedToBeAllowed = estimatedPayloadSize <= maximumPayloadSize ; return estimatedToBeAllowed ; }
Validate if the estimated payload size after adding a given property will be allowed.
Validate if the estimated payload size after adding a given property will be allowed .