Class SmartTojos

  • All Implemented Interfaces:
    Tojos

    public final class SmartTojos
    extends Object
    implements Tojos
    All file-objects. The class is NOT thread-safe.
    Since:
    0.12
    • Constructor Detail

      • SmartTojos

        public SmartTojos​(Tojos tojos)
        Ctor.
        Parameters:
        tojos - The origin
    • Method Detail

      • getById

        public Tojo getById​(String name)
                     throws IOException
        Get one tojo by ID.
        Parameters:
        name - The id
        Returns:
        The tojo if found
        Throws:
        IOException - If fails
      • add

        public Tojo add​(String name)
                 throws IOException
        Description copied from interface: Tojos
        Add new tojo with the given ID. If another tojo already exists with this ID, it will be returned.
        Specified by:
        add in interface Tojos
        Parameters:
        name - The ID of the tojo
        Returns:
        The tojo created or found
        Throws:
        IOException - If fails