@Test public void testToString() { String s = Wildcards.FULL.toString(); assertNotNull(s); assertTrue(s.length() > 0); }
@Override public String toString() { List<String> res = new ArrayList<String>(); for (Wildcards.Flag flag : Flag.values()) { if (flag.isFullyOn(flags)) { res.add(flag.name().toLowerCase()); } } if (Flag.NW_SRC.isPartiallyOn(flags)) { res.add("nw_src(/" + getNwSrcMask() + ")"); } if (Flag.NW_DST.isPartiallyOn(flags)) { res.add("nw_dst(/" + getNwDstMask() + ")"); } return pipeJoiner.join(res); }
Wildcards { @Override public String toString() { List<String> res = new ArrayList<String>(); for (Wildcards.Flag flag : Flag.values()) { if (flag.isFullyOn(flags)) { res.add(flag.name().toLowerCase()); } } if (Flag.NW_SRC.isPartiallyOn(flags)) { res.add("nw_src(/" + getNwSrcMask() + ")"); } if (Flag.NW_DST.isPartiallyOn(flags)) { res.add("nw_dst(/" + getNwDstMask() + ")"); } return pipeJoiner.join(res); } }
Wildcards { @Override public String toString() { List<String> res = new ArrayList<String>(); for (Wildcards.Flag flag : Flag.values()) { if (flag.isFullyOn(flags)) { res.add(flag.name().toLowerCase()); } } if (Flag.NW_SRC.isPartiallyOn(flags)) { res.add("nw_src(/" + getNwSrcMask() + ")"); } if (Flag.NW_DST.isPartiallyOn(flags)) { res.add("nw_dst(/" + getNwDstMask() + ")"); } return pipeJoiner.join(res); } private  Wildcards(int flags); }
Wildcards { @Override public String toString() { List<String> res = new ArrayList<String>(); for (Wildcards.Flag flag : Flag.values()) { if (flag.isFullyOn(flags)) { res.add(flag.name().toLowerCase()); } } if (Flag.NW_SRC.isPartiallyOn(flags)) { res.add("nw_src(/" + getNwSrcMask() + ")"); } if (Flag.NW_DST.isPartiallyOn(flags)) { res.add("nw_dst(/" + getNwDstMask() + ")"); } return pipeJoiner.join(res); } private  Wildcards(int flags); static Wildcards of(int paramFlags); static Wildcards of(Wildcards.Flag setFlag); static Wildcards of(Wildcards.Flag setFlag, Wildcards.Flag setFlag2); static Wildcards of(Wildcards.Flag... setFlags); static Wildcards ofMatches(Wildcards.Flag setFlag); static Wildcards ofMatches(Wildcards.Flag setFlag, Wildcards.Flag setFlag2); static Wildcards ofMatches(Wildcards.Flag... setFlags); Wildcards wildcard(Wildcards.Flag flag); Wildcards wildcard(Wildcards.Flag flag, Wildcards.Flag flag2); Wildcards wildcard(Wildcards.Flag... setFlags); Wildcards matchOn(Wildcards.Flag flag); Wildcards matchOn(Wildcards.Flag flag, Wildcards.Flag flag2); Wildcards matchOn(Wildcards.Flag... setFlags); int getNwSrcMask(); int getNwDstMask(); Wildcards withNwSrcMask(int srcCidrMask); Wildcards withNwDstMask(int dstCidrMask); Wildcards inverted(); boolean isWildcarded(Flag flag); EnumSet<Wildcards.Flag> getWildcardedFlags(); int getInt(); static int sanitizeInt(int flags); boolean isFull(); boolean isExact(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); String toJava(); }
Wildcards { @Override public String toString() { List<String> res = new ArrayList<String>(); for (Wildcards.Flag flag : Flag.values()) { if (flag.isFullyOn(flags)) { res.add(flag.name().toLowerCase()); } } if (Flag.NW_SRC.isPartiallyOn(flags)) { res.add("nw_src(/" + getNwSrcMask() + ")"); } if (Flag.NW_DST.isPartiallyOn(flags)) { res.add("nw_dst(/" + getNwDstMask() + ")"); } return pipeJoiner.join(res); } private  Wildcards(int flags); static Wildcards of(int paramFlags); static Wildcards of(Wildcards.Flag setFlag); static Wildcards of(Wildcards.Flag setFlag, Wildcards.Flag setFlag2); static Wildcards of(Wildcards.Flag... setFlags); static Wildcards ofMatches(Wildcards.Flag setFlag); static Wildcards ofMatches(Wildcards.Flag setFlag, Wildcards.Flag setFlag2); static Wildcards ofMatches(Wildcards.Flag... setFlags); Wildcards wildcard(Wildcards.Flag flag); Wildcards wildcard(Wildcards.Flag flag, Wildcards.Flag flag2); Wildcards wildcard(Wildcards.Flag... setFlags); Wildcards matchOn(Wildcards.Flag flag); Wildcards matchOn(Wildcards.Flag flag, Wildcards.Flag flag2); Wildcards matchOn(Wildcards.Flag... setFlags); int getNwSrcMask(); int getNwDstMask(); Wildcards withNwSrcMask(int srcCidrMask); Wildcards withNwDstMask(int dstCidrMask); Wildcards inverted(); boolean isWildcarded(Flag flag); EnumSet<Wildcards.Flag> getWildcardedFlags(); int getInt(); static int sanitizeInt(int flags); boolean isFull(); boolean isExact(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); String toJava(); final static Wildcards FULL; final static Wildcards EXACT; final static int INT_INPORT_L2_MATCH; final static Wildcards INPORT_L2_MATCH; }