Class ScopedTojos

  • All Implemented Interfaces:
    com.yegor256.tojos.Tojos, Closeable, AutoCloseable

    public final class ScopedTojos
    extends Object
    implements com.yegor256.tojos.Tojos
    Tojos with additional scope attribute.
    Since:
    0.30
    • Constructor Detail

      • ScopedTojos

        public ScopedTojos​(com.yegor256.tojos.Tojos delegate,
                           String scope)
        Ctor.
        Parameters:
        delegate - Unscoped tojos without 'scope' attribute.
        scope - Scope.
    • Method Detail

      • add

        public com.yegor256.tojos.Tojo add​(String name)
        Specified by:
        add in interface com.yegor256.tojos.Tojos
      • select

        public List<com.yegor256.tojos.Tojo> select​(Predicate<com.yegor256.tojos.Tojo> filter)
        Specified by:
        select in interface com.yegor256.tojos.Tojos