public final class Comparison extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Comparison.Side
Represents a file passed as the left or right side of a comparison.
|
| Constructor and Description |
|---|
Comparison(String identifier,
Comparison.Side left,
Comparison.Side right,
boolean isPublic,
Instant creationTime,
Instant expiryTime,
boolean ready,
Instant readyTime,
Boolean failed,
String errorMessage)
Creates a representation of a comparison that has been created.
|
| Modifier and Type | Method and Description |
|---|---|
Instant |
getCreationTime()
Gets when the comparison was created.
|
String |
getErrorMessage()
If the comparison failed, gets an message describing error.
|
Instant |
getExpiryTime()
Gets when the comparison expires, or null if it doesn't expire.
|
Boolean |
getFailed()
Gets whether the comparison failed.
|
String |
getIdentifier()
Gets the comparison's identifier.
|
boolean |
getIsPublic()
Gets whether the comparison is public or private.
|
Comparison.Side |
getLeft()
Gets metadata for the left file.
|
boolean |
getReady()
Gets whether the comparison has been processed.
|
Instant |
getReadyTime()
If the comparison is ready, gives the time at which processing finished.
|
Comparison.Side |
getRight()
Gets metadata for the right file.
|
String |
toString() |
public Comparison(@Nonnull String identifier, @Nonnull Comparison.Side left, @Nonnull Comparison.Side right, boolean isPublic, @Nonnull Instant creationTime, @Nullable Instant expiryTime, boolean ready, @Nullable Instant readyTime, @Nullable Boolean failed, @Nullable String errorMessage)
identifier - The comparison's identifier.left - Representation of the left file.right - Representation of the right file.isPublic - Whether the comparison is public or private.creationTime - When the comparison was created.expiryTime - When the comparison expires, or null if it doesn't expire.ready - Whether the comparison has been processed.readyTime - If the comparison is ready, the time at which it became ready.failed - Whether the comparison failed. Is null if the comparison hasn't been processed.errorMessage - If the comparison failed, gives an error message describing the failure. Null otherwise.@Nonnull public final String getIdentifier()
@Nonnull public final Comparison.Side getLeft()
@Nonnull public final Comparison.Side getRight()
public final boolean getIsPublic()
@Nonnull public final Instant getCreationTime()
@Nullable public final Instant getExpiryTime()
public final boolean getReady()
@Nullable public final Instant getReadyTime()
@Nullable public final Boolean getFailed()
@Nullable public final String getErrorMessage()
Copyright © 2017. All rights reserved.