com.avalara.avatax.services.base
Class Utility
java.lang.Object
com.avalara.avatax.services.base.Utility
public class Utility
- extends java.lang.Object
Misc utility methods
Method Summary |
static java.lang.String |
BuildAuditMetrics(java.lang.String originalMetric,
java.lang.String transactionId,
long duration)
|
static java.lang.Object |
HasClientMetricMessage(java.lang.Object message)
Utility finction that checks if clientmetricsrequest message has been sent from server or not
We will send client Metrics back to server only if we find this message in the Result Object |
static java.lang.Object |
resizeArray(java.lang.Object oldArray,
int newSize)
Reallocates an array with a new size, and copies the contents
of the old array to the new array. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Utility
public Utility()
resizeArray
public static java.lang.Object resizeArray(java.lang.Object oldArray,
int newSize)
- Reallocates an array with a new size, and copies the contents
of the old array to the new array.
- Parameters:
oldArray
- the old array, to be reallocated.newSize
- the new array size.
- Returns:
- A new array with the same contents.
BuildAuditMetrics
public static java.lang.String BuildAuditMetrics(java.lang.String originalMetric,
java.lang.String transactionId,
long duration)
- Parameters:
originalMetric
- transactionId
- duration
-
- Returns:
HasClientMetricMessage
public static java.lang.Object HasClientMetricMessage(java.lang.Object message)
- Utility finction that checks if clientmetricsrequest message has been sent from server or not
We will send client Metrics back to server only if we find this message in the Result Object
- Parameters:
message
- com.avalara.avatax.services.address.ArrayOfMessage or com.avalara.avatax.services.tax.ArrayOfMessage object
- Returns:
- Object of Message