@Immutable @Loggable(value=1) public final class MkCommit extends Object implements Commit
Commit.Smart
Constructor and Description |
---|
MkCommit(MkStorage strg,
String login,
Coordinates crds,
String commitsha)
Public constructor.
|
public MkCommit(@NotNull(message="strg can\'t be NULL") MkStorage strg, @NotNull(message="login can\'t be NULL") String login, @NotNull(message="crds can\'t be NULL") Coordinates crds, @NotNull(message="identifier can\'t be NULL") String commitsha)
strg
- The storage.login
- The login namecrds
- Credentialcommitsha
- Commit's sha.@NotNull(message="repository is never NULL") public Repo repo()
Commit
@NotNull(message="sha is never NULL") public String sha()
Commit
@NotNull(message="JSON is never NULL") public javax.json.JsonObject json() throws IOException
JsonReadable
json
in interface JsonReadable
IOException
- If there is any I/O problempublic int compareTo(Commit commit)
compareTo
in interface Comparable<Commit>
Copyright © 2012–2014 jcabi.com. All rights reserved.