Enum Strong.Policy

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<Strong.Policy>
    Enclosing class:
    Strong

    public static enum Strong.Policy
    extends java.lang.Enum<Strong.Policy>
    How whether an operator's operands are null affects whether a call to that operator evaluates to null.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      ANY
      This kind of expression is null if and only if at least one of its arguments is null.
      AS_IS
      This kind of expression may be null.
      CUSTOM
      This kind of expression has its own particular rules about whether it is null.
      NOT_NULL
      This kind of expression is never null.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Policy()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Strong.Policy valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static Strong.Policy[] 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
    • Enum Constant Detail

      • NOT_NULL

        public static final Strong.Policy NOT_NULL
        This kind of expression is never null. No need to look at its arguments, if it has any.
      • CUSTOM

        public static final Strong.Policy CUSTOM
        This kind of expression has its own particular rules about whether it is null.
      • ANY

        public static final Strong.Policy ANY
        This kind of expression is null if and only if at least one of its arguments is null.
      • AS_IS

        public static final Strong.Policy AS_IS
        This kind of expression may be null. There is no way to rewrite.
    • Constructor Detail

      • Policy

        private Policy()
    • Method Detail

      • values

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

        public static Strong.Policy 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