Class RepositoryTypePredicate

java.lang.Object
sonia.scm.repository.RepositoryTypePredicate
All Implemented Interfaces:
com.google.common.base.Predicate<Repository>, Predicate<Repository>

public class RepositoryTypePredicate extends Object implements com.google.common.base.Predicate<Repository>
Used to filter collections of repositories by its type.
Since:
1.16
  • Constructor Details

    • RepositoryTypePredicate

      public RepositoryTypePredicate(String type)
  • Method Details

    • apply

      public boolean apply(Repository repository)
      Return true if the repository is from the given type.
      Specified by:
      apply in interface com.google.common.base.Predicate<Repository>
      Parameters:
      repository - repository to check