/** * @return An array of EEs that this EE implicitly offers, through backwards * compatibility. */ public EE[] getCompatible() { EnumSet<EE> set = getCompatibleSet(); return set.toArray(new EE[0]); }
private EnumSet<EE> getCompatibleSet() { if (compatibleSet != null) { return compatibleSet; } EnumSet<EE> set = EnumSet.noneOf(getDeclaringClass()); if (compatible != null) { for (EE ee : compatible) { set.add(ee); set.addAll(ee.getCompatibleSet()); } } return compatibleSet = set; }
private EnumSet<EE> getCompatibleSet() { if (compatibleSet != null) { return compatibleSet; } EnumSet<EE> set = EnumSet.noneOf(getDeclaringClass()); if (compatible != null) { for (EE ee : compatible) { set.add(ee); set.addAll(ee.getCompatibleSet()); } } return compatibleSet = set; }
/** * @return An array of EEs that this EE implicitly offers, through backwards * compatibility. */ public EE[] getCompatible() { EnumSet<EE> set = getCompatibleSet(); return set.toArray(new EE[0]); }
/** * @return An array of EEs that this EE implicitly offers, through backwards compatibility. */ public EE[] getCompatible() { EnumSet<EE> set = getCompatibleSet(); return set.toArray(new EE[set.size()]); }
private EnumSet<EE> getCompatibleSet() { if (compatibleSet != null) { return compatibleSet; } EnumSet<EE> set = EnumSet.noneOf(getDeclaringClass()); if (compatible != null) { for (EE ee : compatible) { set.add(ee); set.addAll(ee.getCompatibleSet()); } } return compatibleSet = set; }
/** * @return An array of EEs that this EE implicitly offers, through backwards compatibility. */ public EE[] getCompatible() { EnumSet<EE> set = getCompatibleSet(); return set.toArray(new EE[set.size()]); }
private EnumSet<EE> getCompatibleSet() { if (compatibleSet != null) { return compatibleSet; } EnumSet<EE> set = EnumSet.noneOf(getDeclaringClass()); if (compatible != null) { for (EE ee : compatible) { set.add(ee); set.addAll(ee.getCompatibleSet()); } } return compatibleSet = set; }