public static boolean isNormalized ( final URI uri , final boolean strict ) { return ! Strings . isNullOrEmpty ( uri . getScheme ( ) ) && Objects . equal ( Uris . getRawUserInfo ( uri ) , uri . getRawUserInfo ( ) ) && ! Strings . isNullOrEmpty ( uri . getHost ( ) ) && hasPort ( uri ) && Objects . equal ( Uris . getRawPath ( uri , strict ) , uri . getRawPath ( ) ) && Objects . equal ( Uris . getRawQuery ( uri , strict ) , uri . getRawQuery ( ) ) && Objects . equal ( Uris . getRawFragment ( uri , strict ) , uri . getRawFragment ( ) ) ; }
Returns whether or not the given URI is normalized according to our rules .