/** * Check whether passed flags represent file. * * @param flags Flags. * @return {@code True} if this is file. */ public static boolean isFile(byte flags) { return hasFlag(flags, FLAG_FILE); }
/** * Check whether passed flags represent directory. * * @param flags Flags. * @return {@code True} if this is directory. */ public static boolean isDirectory(byte flags) { return hasFlag(flags, FLAG_DIR); }
/** * Check whether passed flags represent directory. * * @param flags Flags. * @return {@code True} if this is directory. */ public static boolean isDirectory(byte flags) { return hasFlag(flags, FLAG_DIR); }
/** * Check whether passed flags represent file. * * @param flags Flags. * @return {@code True} if this is file. */ public static boolean isFile(byte flags) { return hasFlag(flags, FLAG_FILE); }