Class Immutables


  • public final class Immutables
    extends Object
    • Method Detail

      • isImmutable

        public static boolean isImmutable​(Object obj)
        Determines if object is known to be immutable

        Note: This method may return false to immutable objects which immutability is not known, was defined not using concepts term.

        Parameters:
        obj - Reference to check
        Returns:
        true if object is known to be immutable false otherwise.