/** * {@inheritDoc} * <p> * Execute the {@code LsRemote} command with all the options and parameters * collected by the setter methods (e.g. {@link #setHeads(boolean)}) of this * class. Each instance of this class should only be used for one invocation * of the command. Don't call this method twice on an instance. */ @Override public Collection<Ref> call() throws GitAPIException, InvalidRemoteException, org.eclipse.jgit.api.errors.TransportException { return execute().values(); }
/** * Same as {@link #call()}, but return Map instead of Collection. * * @return a map from names to references in the remote repository * @throws org.eclipse.jgit.api.errors.GitAPIException * or subclass thereof when an error occurs * @throws org.eclipse.jgit.api.errors.InvalidRemoteException * when called with an invalid remote uri * @throws org.eclipse.jgit.api.errors.TransportException * for errors that occurs during transport * @since 3.5 */ public Map<String, Ref> callAsMap() throws GitAPIException, InvalidRemoteException, org.eclipse.jgit.api.errors.TransportException { return Collections.unmodifiableMap(execute()); }
/** * {@inheritDoc} * <p> * Execute the {@code LsRemote} command with all the options and parameters * collected by the setter methods (e.g. {@link #setHeads(boolean)}) of this * class. Each instance of this class should only be used for one invocation * of the command. Don't call this method twice on an instance. */ @Override public Collection<Ref> call() throws GitAPIException, InvalidRemoteException, org.eclipse.jgit.api.errors.TransportException { return execute().values(); }
/** * Same as {@link #call()}, but return Map instead of Collection. * * @return a map from names to references in the remote repository * @throws GitAPIException * or subclass thereof when an error occurs * @throws InvalidRemoteException * when called with an invalid remote uri * @throws org.eclipse.jgit.api.errors.TransportException * for errors that occurs during transport * @since 3.5 */ public Map<String, Ref> callAsMap() throws GitAPIException, InvalidRemoteException, org.eclipse.jgit.api.errors.TransportException { return Collections.unmodifiableMap(execute()); }
/** * Same as {@link #call()}, but return Map instead of Collection. * * @return a map from names to references in the remote repository * @throws org.eclipse.jgit.api.errors.GitAPIException * or subclass thereof when an error occurs * @throws org.eclipse.jgit.api.errors.InvalidRemoteException * when called with an invalid remote uri * @throws org.eclipse.jgit.api.errors.TransportException * for errors that occurs during transport * @since 3.5 */ public Map<String, Ref> callAsMap() throws GitAPIException, InvalidRemoteException, org.eclipse.jgit.api.errors.TransportException { return Collections.unmodifiableMap(execute()); }
/** * Executes the {@code LsRemote} command with all the options and parameters * collected by the setter methods (e.g. {@link #setHeads(boolean)}) of this * class. Each instance of this class should only be used for one invocation * of the command. Don't call this method twice on an instance. * * @return a collection of references in the remote repository * @throws GitAPIException * or subclass thereof when an error occurs * @throws InvalidRemoteException * when called with an invalid remote uri * @throws org.eclipse.jgit.api.errors.TransportException * for errors that occurs during transport */ public Collection<Ref> call() throws GitAPIException, InvalidRemoteException, org.eclipse.jgit.api.errors.TransportException { return execute().values(); }