/** * return a wildcard object matching the given int flags. May reuse / cache * frequently used wildcard instances. Don't rely on it though (use equals * not ==). * * @param flags * @return */ public static Wildcards of(final int paramFlags) { final int flags = Wildcards.sanitizeInt(paramFlags); switch (flags) { case 0x0000: return Wildcards.EXACT; case OFMatch.OFPFW_ALL_SANITIZED: return Wildcards.FULL; case INT_INPORT_L2_MATCH: return Wildcards.INPORT_L2_MATCH; default: return new Wildcards(flags); } }