/** * * @param flavor * @return Returns true if the given flavor is a richer flavor of this * transferable. */ protected boolean isRicherFlavor(DataFlavor flavor) { DataFlavor[] richerFlavors = getRicherFlavors(); int nFlavors = (richerFlavors != null) ? richerFlavors.length : 0; for (int i = 0; i < nFlavors; i++) { if (richerFlavors[i].equals(flavor)) { return true; } } return false; }
/** * * @param flavor * @return Returns true if the given flavor is a richer flavor of this * transferable. */ protected boolean isRicherFlavor(DataFlavor flavor) { DataFlavor[] richerFlavors = getRicherFlavors(); int nFlavors = (richerFlavors != null) ? richerFlavors.length : 0; for (int i = 0; i < nFlavors; i++) { if (richerFlavors[i].equals(flavor)) { return true; } } return false; }
DataFlavor[] richerFlavors = getRicherFlavors();
DataFlavor[] richerFlavors = getRicherFlavors();