/** * Implements {@link Supplier#get()} by delegating to {@link #call()}. */ @Override public AutoCloseableIterator<DiffEntry> get() { return call(); }
/** * Implements {@link Supplier#get()} by deferring to {@link #call()} * * @see #call() */ @Override public AutoCloseableIterator<DiffEntry> get() { return call(); }
/** * Implements {@link Supplier#get()} by deferring to {@link #call()} * * @see #call() */ @Override public AutoCloseableIterator<DiffEntry> get() { return call(); }
/** * @return the resolved object id * @throws IllegalArgumentException if the provided refspec doesn't resolve to any known object * @see RevObject */ @Override protected Optional<RevObject> _call() throws IllegalArgumentException { return call(RevObject.class); }
/** * Implements {@link Supplier#get()} by deferring to {@link #call()} */ @Override public Iterator<NodeRef> get() { return call(); } }
@Test public void testHashTags() throws Exception { ObjectId tagId = hashCommand.setObject(tag1).call(); ObjectId tagId2 = hashCommand.setObject(tag2).call(); assertNotNull(tagId); assertNotNull(tagId2); assertNotSame(tagId, tagId2); }
private void testHashCommitsConsistency(RevObject o) throws Exception { ObjectId expected = o.getId(); ObjectId actual = hashCommand.setObject(o).call(); assertEquals(expected, actual); } }
@Test public void testEmptyRepo() { ObjectId root = command.call(); assertNotNull(root); assertEquals(RevTree.EMPTY_TREE_ID, root); }
public MapRef addAll(Iterable<Ref> refs) { for (Ref ref : refs) { add(ref); } return this; }
@Override protected Repository _call() { return repository(); } }
/** * @return the resolved object id * @throws IllegalArgumentException if the provided refspec doesn't resolve to any known object * @see RevObject */ @Override protected Optional<RevObject> _call() throws IllegalArgumentException { return call(RevObject.class); }
/** * Implements {@link Supplier#get()} by deferring to {@link #call()} */ @Override public Iterator<NodeRef> get() { return call(); } }
@Test public void testHashTags() throws Exception { ObjectId tagId = hashCommand.setObject(tag1).call(); ObjectId tagId2 = hashCommand.setObject(tag2).call(); assertNotNull(tagId); assertNotNull(tagId2); assertNotSame(tagId, tagId2); }
/** * Implements {@link Supplier#get()} by delegating to {@link #call()}. */ @Override public AutoCloseableIterator<DiffEntry> get() { return call(); }
/** * Implements {@link Supplier#get()} by deferring to {@link #call()} * * @see #call() */ @Override public AutoCloseableIterator<DiffEntry> get() { return call(); }
private void testHashCommitsConsistency(RevObject o) throws Exception { ObjectId expected = o.getId(); ObjectId actual = hashCommand.setObject(o).call(); assertEquals(expected, actual); } }
/** * Implements {@link Supplier#get()} by deferring to {@link #call()} * * @see #call() */ @Override public AutoCloseableIterator<DiffEntry> get() { return call(); }
@Override protected Repository _call() { return repository(); } }