Enum InvalidModIdentifier

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.function.BiPredicate<java.nio.file.Path,​java.util.Optional<java.util.zip.ZipFile>> ident  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private InvalidModIdentifier​(java.util.function.BiPredicate<java.nio.file.Path,​java.util.Optional<java.util.zip.ZipFile>> identifier)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private static java.util.function.BiPredicate<java.nio.file.Path,​java.util.Optional<java.util.zip.ZipFile>> filePresent​(java.lang.String filename)  
      private java.lang.String getReason()  
      static java.util.Optional<java.lang.String> identifyJarProblem​(java.nio.file.Path path)  
      private static <T> java.util.Optional<T> optionalFromException​(cpw.mods.modlauncher.api.LamdbaExceptionUtils.Supplier_WithExceptions<T,​? extends java.lang.Exception> supp)  
      static InvalidModIdentifier valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static InvalidModIdentifier[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • ident

        private java.util.function.BiPredicate<java.nio.file.Path,​java.util.Optional<java.util.zip.ZipFile>> ident
    • Constructor Detail

      • InvalidModIdentifier

        private InvalidModIdentifier​(java.util.function.BiPredicate<java.nio.file.Path,​java.util.Optional<java.util.zip.ZipFile>> identifier)
    • Method Detail

      • values

        public static InvalidModIdentifier[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (InvalidModIdentifier c : InvalidModIdentifier.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static InvalidModIdentifier valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getReason

        private java.lang.String getReason()
      • identifyJarProblem

        public static java.util.Optional<java.lang.String> identifyJarProblem​(java.nio.file.Path path)
      • filePresent

        private static java.util.function.BiPredicate<java.nio.file.Path,​java.util.Optional<java.util.zip.ZipFile>> filePresent​(java.lang.String filename)
      • optionalFromException

        private static <T> java.util.Optional<T> optionalFromException​(cpw.mods.modlauncher.api.LamdbaExceptionUtils.Supplier_WithExceptions<T,​? extends java.lang.Exception> supp)