Class MonoTojos

  • All Implemented Interfaces:
    Tojos

    public final class MonoTojos
    extends Object
    implements Tojos
    All tojos in a Mono. The class is NOT thread-safe.
    Since:
    0.12
    • Constructor Detail

      • MonoTojos

        public MonoTojos​(File path)
        Ctor.
        Parameters:
        path - The path to the file
      • MonoTojos

        public MonoTojos​(Path path)
        Ctor.
        Parameters:
        path - The path to the file
      • MonoTojos

        public MonoTojos​(Mono mno)
        Ctor.
        Parameters:
        mno - The CSV
    • Method Detail

      • 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