Example usage for org.apache.commons.lang3.builder ToStringStyle SHORT_PREFIX_STYLE

List of usage examples for org.apache.commons.lang3.builder ToStringStyle SHORT_PREFIX_STYLE

Introduction

In this page you can find the example usage for org.apache.commons.lang3.builder ToStringStyle SHORT_PREFIX_STYLE.

Prototype

ToStringStyle SHORT_PREFIX_STYLE

To view the source code for org.apache.commons.lang3.builder ToStringStyle SHORT_PREFIX_STYLE.

Click Source Link

Document

The short prefix toString style.

Usage

From source file:com.smartling.api.sdk.dto.ApiResponseWrapper.java

@Override
public String toString() {
    return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("response", getResponse())
            .toString();/*  w w w.j ava 2 s.c  o  m*/
}

From source file:com.creditcloud.interestbearing.ta.message.asset.QueryPlatformAssetGapResponseMessage.java

@Override
public String toString() {
    ReflectionToStringBuilder builder = new ReflectionToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE);
    builder.setAppendStatics(false);/*from  w w  w . j  a v a  2s .co m*/
    builder.setAppendTransients(false);

    return builder.build();
}

From source file:com.linux.designpatterns.observerobservable.impl.SimpleObserver.java

/**
 * {@inheritDoc}//from  www .j a  va  2 s. c  om
 */
@Override
public String toString() {
    return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append(name).toString();
}

From source file:com.infinities.skyport.compute.entity.patch.SnapshotPatchBuilder.java

@Override
public DiffResult diff(Snapshot old, Snapshot updated) {
    DiffResult diff = new DiffBuilder(old, updated, ToStringStyle.SHORT_PREFIX_STYLE)
            .append("sizeInGb", old.getSizeInGb(), updated.getSizeInGb())
            .append("snapshotTimestamp", old.getSnapshotTimestamp(), updated.getSnapshotTimestamp())
            .append("currentState", old.getCurrentState(), updated.getCurrentState())
            .append("description", old.getDescription(), updated.getDescription())
            .append("name", old.getName(), updated.getName())
            .append("owner", old.getOwner(), updated.getOwner())
            .append("progress", old.getProgress(), updated.getProgress())
            .append("providerSnapshotId", old.getProviderSnapshotId(), updated.getProviderSnapshotId())
            .append("regionId", old.getRegionId(), updated.getRegionId())
            .append("tags", old.getTags(), updated.getTags())
            .append("visibleScope", old.getVisibleScope(), updated.getVisibleScope())
            .append("volumeId", old.getVolumeId(), updated.getVolumeId()).build();
    return diff;//from  w w w. j  a v a 2 s .c om
}

From source file:com.mgmtp.perfload.loadprofiles.ui.model.Marker.java

@Override
public String toString() {
    return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE).toString();
}

From source file:com.infinities.skyport.compute.entity.patch.VolumePatchBuilder.java

@Override
public DiffResult diff(Volume old, Volume updated) {
    DiffResult diff = new DiffBuilder(old, updated, ToStringStyle.SHORT_PREFIX_STYLE)
            .append("creationTimestamp", old.getCreationTimestamp(), updated.getCreationTimestamp())
            .append("iops", old.getIops(), updated.getIops())
            .append("currentState", old.getCurrentState(), updated.getCurrentState())
            .append("description", old.getDescription(), updated.getDescription())
            .append("deviceId", old.getDeviceId(), updated.getDeviceId())
            .append("format", old.getFormat(), updated.getFormat())
            .append("guestOperatingSystem", old.getGuestOperatingSystem(), updated.getGuestOperatingSystem())
            .append("mediaLink", old.getMediaLink(), updated.getMediaLink())
            .append("name", old.getName(), updated.getName())
            .append("providerDataCenterId", old.getProviderDataCenterId(), updated.getProviderDataCenterId())
            .append("providerProductId", old.getProviderProductId(), updated.getProviderProductId())
            .append("providerRegionId", old.getProviderRegionId(), updated.getProviderRegionId())
            .append("providerSnapshotId", old.getProviderSnapshotId(), updated.getProviderSnapshotId())
            .append("providerVirtualMachineId", old.getProviderVirtualMachineId(),
                    updated.getProviderVirtualMachineId())
            .append("providerVlanId", old.getProviderVlanId(), updated.getProviderVlanId())
            .append("providerVolumeId", old.getProviderVolumeId(), updated.getProviderVolumeId())
            .append("size", old.getSize(), updated.getSize()).append("tags", old.getTags(), updated.getTags())
            .append("deleteOnVirtualMachineTermination", old.isDeleteOnVirtualMachineTermination(),
                    updated.isDeleteOnVirtualMachineTermination())
            .append("type", old.getType(), updated.getType())
            .append("rootVolume", old.isRootVolume(), updated.isRootVolume()).build();
    return diff;/*from   w ww .j  a va2  s .  c om*/
}

From source file:com.infinities.skyport.compute.entity.patch.MachineImagePatchBuilder.java

@Override
public DiffResult diff(MachineImage old, MachineImage updated) {
    DiffResult diff = new DiffBuilder(old, updated, ToStringStyle.SHORT_PREFIX_STYLE)
            .append("creationTimestamp", old.getCreationTimestamp(), updated.getCreationTimestamp())
            .append("minimumDiskSizeGb", old.getMinimumDiskSizeGb(), updated.getMinimumDiskSizeGb())
            .append("architecture", old.getArchitecture(), updated.getArchitecture())
            .append("currentState", old.getCurrentState(), updated.getCurrentState())
            .append("description", old.getDescription(), updated.getDescription())
            .append("imageClass", old.getImageClass(), updated.getImageClass())
            .append("kernelImageId", old.getKernelImageId(), updated.getKernelImageId())
            .append("name", old.getName(), updated.getName())
            .append("platform", old.getPlatform(), updated.getPlatform())
            .append("providerDataCenterId", old.getProviderDataCenterId(), updated.getProviderDataCenterId())
            .append("providerMachineImageId", old.getProviderMachineImageId(),
                    updated.getProviderMachineImageId())
            .append("providerMetadata", old.getProviderMetadata(), updated.getProviderMetadata())
            .append("providerOwnerId", old.getProviderOwnerId(), updated.getProviderOwnerId())
            .append("providerRegionId", old.getProviderRegionId(), updated.getProviderRegionId())
            .append("software", old.getSoftware(), updated.getSoftware())
            .append("storageFormat", old.getStorageFormat(), updated.getStorageFormat())
            .append("tags", old.getTags(), updated.getTags()).append("type", old.getType(), updated.getType())
            .append("visibleScope", old.getVisibleScope(), updated.getVisibleScope())
            .append("volumes", old.getVolumes(), updated.getVolumes()).build();
    return diff;//from  ww w.j  a v  a 2 s .c  o m
}

From source file:bq.jpa.demo.query.domain.ResultViewer.java

public static void printResult(Object obj) {
    if (obj instanceof Object[]) {
        Object[] columns = (Object[]) obj;
        for (Object column : columns)
            printResult(column);/*from  www.  j  a v a 2s  .co  m*/
    } else if (obj instanceof Long || obj instanceof Double || obj instanceof String)
        System.out.print(obj.getClass().getName() + ": " + obj);
    else {
        System.out.print(ReflectionToStringBuilder.toString(obj, ToStringStyle.SHORT_PREFIX_STYLE));
    }

    System.out.println();

}

From source file:com.infinities.skyport.compute.entity.patch.VirtualMachineProductPatchBuilder.java

@Override
public DiffResult diff(VirtualMachineProduct old, VirtualMachineProduct updated) {
    DiffResult diff = new DiffBuilder(old, updated, ToStringStyle.SHORT_PREFIX_STYLE)
            .append("cpuCount", old.getCpuCount(), updated.getCpuCount())
            .append("standardHourlyRate", old.getStandardHourlyRate(), updated.getStandardHourlyRate())
            .append("architectures", old.getArchitectures(), updated.getArchitectures())
            .append("dataCenterId", old.getDataCenterId(), updated.getDataCenterId())
            .append("description", old.getDescription(), updated.getDescription())
            .append("name", old.getName(), updated.getName())
            .append("providerMetadata", old.getProviderMetadata(), updated.getProviderMetadata())
            .append("providerProductId", old.getProviderProductId(), updated.getProviderProductId())
            .append("ramSize", old.getRamSize(), updated.getRamSize())
            .append("rootVolumeSize", old.getRootVolumeSize(), updated.getRootVolumeSize())
            .append("status", old.getStatus(), updated.getStatus())
            .append("visibleScope", old.getVisibleScope(), updated.getVisibleScope()).build();
    return diff;//  w  w w  .  ja v a2 s  .c  o m
}

From source file:com.infinities.skyport.compute.entity.patch.VirtualMachinePatchBuilder.java

@Override
public DiffResult diff(VirtualMachine old, VirtualMachine updated) {
    DiffResult diff = new DiffBuilder(old, updated, ToStringStyle.SHORT_PREFIX_STYLE)
            .append("providerVirtualMachineId", old.getProviderVirtualMachineId(),
                    updated.getProviderVirtualMachineId())
            .append("providerVmStatus", old.getProviderVmStatus(), updated.getProviderVmStatus())
            .append("affinityGroupId", old.getAffinityGroupId(), updated.getAffinityGroupId())
            .append("architecture", old.getArchitecture(), updated.getArchitecture())
            .append("clientRequestToken", old.getClientRequestToken(), updated.getClientRequestToken())
            .append("clonable", old.isClonable(), updated.isClonable())
            .append("creationTimestamp", old.getCreationTimestamp(), updated.getCreationTimestamp())
            .append("currentState", old.getCurrentState(), updated.getCurrentState())
            .append("description", old.getDescription(), updated.getDescription())
            .append("imagable", old.isImagable(), updated.isImagable())
            .append("ioOptimized", old.isIoOptimized(), updated.isIoOptimized())
            .append("ipForwardingAllowed", old.isIpForwardingAllowed(), updated.isIpForwardingAllowed())
            .append("lastBootTimestamp", old.getLastBootTimestamp(), updated.getLastBootTimestamp())
            .append("lastPauseTimestamp", old.getLastPauseTimestamp(), updated.getLastPauseTimestamp())
            .append("lifecycle", old.getLifecycle(), updated.getLifecycle())
            .append("name", old.getName(), updated.getName())
            .append("pausable", old.isPausable(), updated.isPausable())
            .append("persistent", old.isPersistent(), updated.isPersistent())
            .append("platform", old.getPlatform(), updated.getPlatform())
            .append("productId", old.getProductId(), updated.getProductId())
            .append("providerAssignedIpAddressId", old.getProviderAssignedIpAddressId(),
                    updated.getProviderAssignedIpAddressId())
            .append("providerDataCenterId", old.getProviderDataCenterId(), updated.getProviderDataCenterId())
            .append("providerHostStatus", old.getProviderHostStatus(), updated.getProviderHostStatus())
            .append("providerKernelImageId", old.getProviderKernelImageId(), updated.getProviderKernelImageId())
            .append("providerKeypairId", old.getProviderKeypairId(), updated.getProviderKeypairId())
            .append("providerMachineImageId", old.getProviderMachineImageId(),
                    updated.getProviderMachineImageId())
            .append("providerOwnerId", old.getProviderOwnerId(), updated.getProviderOwnerId())
            .append("providerRamdiskImageId", old.getProviderRamdiskImageId(),
                    updated.getProviderRamdiskImageId())
            .append("providerRegionId", old.getProviderRegionId(), updated.getProviderRegionId())
            .append("providerRoleId", old.getProviderRoleId(), updated.getProviderRoleId())
            .append("providerSubnetId", old.getProviderSubnetId(), updated.getProviderSubnetId())
            .append("providerVlanId", old.getProviderVlanId(), updated.getProviderVlanId())
            .append("rebootable", old.isRebootable(), updated.isRebootable())
            .append("resourcePoolId", old.getResourcePoolId(), updated.getResourcePoolId())
            .append("rootPassword", old.getRootPassword(), updated.getRootPassword())
            .append("rootUser", old.getRootUser(), updated.getRootUser())
            .append("spotRequestId", old.getSpotRequestId(), updated.getSpotRequestId())
            .append("stateReasonMessage", old.getStateReasonMessage(), updated.getStateReasonMessage())
            .append("terminationTimestamp", old.getTerminationTimestamp(), updated.getTerminationTimestamp())
            .append("visibleScope", old.getVisibleScope(), updated.getVisibleScope())
            .append("labels", old.getLabels(), updated.getLabels())
            .append("privateAddresses", old.getPrivateAddresses(), updated.getPrivateAddresses())
            .append("privateDnsAddress", old.getPrivateDnsAddress(), updated.getPrivateDnsAddress())
            .append("providerFirewallIds", old.getProviderFirewallIds(), updated.getProviderFirewallIds())
            .append("providerNetworkInterfaceIds", old.getProviderNetworkInterfaceIds(),
                    updated.getProviderNetworkInterfaceIds())
            .append("providerShellKeyIds", old.getProviderShellKeyIds(), updated.getProviderShellKeyIds())
            .append("publicAddresses", old.getPublicAddresses(), updated.getPublicAddresses())
            .append("publicDnsAddress", old.getPublicDnsAddress(), updated.getPublicDnsAddress())
            .append("tags", old.getTags(), updated.getTags())
            .append("volumes", old.getVolumes(), updated.getVolumes()).build();
    return diff;/*from ww w.j av  a2s . c  o m*/
}