@Immutable public interface References
Modifier and Type | Method and Description |
---|---|
Reference |
create(String ref,
String sha)
Creates a reference.
|
Reference |
get(String identifier)
Get Reference by identifier.
|
Iterable<Reference> |
heads()
Iterate references under "heads" sub-namespace.
|
Iterable<Reference> |
iterate()
Iterates all references.
|
Iterable<Reference> |
iterate(String subnamespace)
Iterates references in sub-namespace.
|
void |
remove(String identifier)
Removes a reference by its identifier.
|
Repo |
repo()
Owner of them.
|
Iterable<Reference> |
tags()
Iterate references under "tags" sub-namespace.
|
@NotNull(message="reference is never null") Reference create(@NotNull(message="ref can\'t be NULL") String ref, @NotNull(message="sha can\'t be NULL") String sha) throws IOException
ref
- The name of the fully qualified reference (ie: refs/heads/master).sha
- The SHA1 value to set this reference to.IOException
- - If there are any errors.@NotNull(message="reference is never null") Reference get(@NotNull(message="identifier can\'t be null") String identifier)
identifier
- Reference's name.@NotNull(message="iterable is never NULL") Iterable<Reference> iterate()
@NotNull(message="iterable is never NULL") Iterable<Reference> iterate(@NotNull(message="identifier can\'t be null") String subnamespace)
subnamespace
- Sub-namespace@NotNull(message="iterable of tags is never NULL") Iterable<Reference> tags()
@NotNull(message="iterable of heads is never NULL") Iterable<Reference> heads()
void remove(@NotNull(message="identifier can\'t be NULL") String identifier) throws IOException
identifier
- Reference's identifier.IOException
- If there is any I/O problem.Copyright © 2012–2014 jcabi.com. All rights reserved.