Enum FileServerType.OPERATION

    • Constructor Detail

      • OPERATION

        private OPERATION()
    • Method Detail

      • values

        public static FileServerType.OPERATION[] 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 (FileServerType.OPERATION c : FileServerType.OPERATION.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static FileServerType.OPERATION 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
      • operationsFor

        public static java.util.Collection<FileServerType.OPERATION> operationsFor​(FileServerType.OPERATION operation)
        Returns a collection of operations corresponding to a get or put operation
        Parameters:
        operation - the operation for which all the operations are reqd
        Returns:
        Collection consisting of valid operations for operation passed
      • operationsForGET

        public static java.util.Collection<FileServerType.OPERATION> operationsForGET()
        Returns a collection of get operations.
        Returns:
        Collection consisting of get and all
      • operationsForPUT

        public static java.util.Collection<FileServerType.OPERATION> operationsForPUT()
        Returns a collection of get operations.
        Returns:
        Collection consisting of put and all