Enum Span.DefaultModifyPolicy

    • Method Detail

      • values

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

        public static Span.DefaultModifyPolicy 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
      • canInitialize

        public boolean canInitialize​(java.lang.Object var)
        Specified by:
        canInitialize in interface ModifyPolicy
      • canIterate

        public boolean canIterate​(java.lang.Object var)
        Specified by:
        canIterate in interface ModifyPolicy
      • canOverwrite

        public boolean canOverwrite​(java.lang.Object old,
                                    java.lang.Object with)
        Specified by:
        canOverwrite in interface ModifyPolicy
      • canRemove

        public boolean canRemove​(java.lang.Object var)
        Specified by:
        canRemove in interface ModifyPolicy
      • canCleanup

        public boolean canCleanup​(java.lang.Object var)
        Specified by:
        canCleanup in interface ModifyPolicy
      • fail

        public void fail​(java.lang.String message)
                  throws java.lang.NullPointerException
        Specified by:
        fail in interface ModifyPolicy
        Throws:
        java.lang.NullPointerException