@Test public void qualifierEqualToReturnsFalseOnAbsentQualifier() { assertFalse(nameTypeAndQualifierEqualTo(geoRRS.name(), geoRRS.type(), "TXT").apply(aRRS)); }
public static Filter<ResourceRecordSet<?>> nameTypeAndQualifierEqualTo(final String name, final String type, final String qualifier) { checkNotNull(name, "name"); checkNotNull(type, "type"); checkNotNull(qualifier, "qualifier"); return new Filter<ResourceRecordSet<?>>() { @Override public boolean apply(ResourceRecordSet<?> in) { return in != null && name.equals(in.name()) && type.equals(in.type()) && qualifier.equals(in.qualifier()); } @Override public String toString() { return "nameTypeAndQualifierEqualTo(" + name + "," + type + "," + qualifier + ")"; } }; }
ResourceRecordSets { public static Filter<ResourceRecordSet<?>> nameTypeAndQualifierEqualTo(final String name, final String type, final String qualifier) { checkNotNull(name, "name"); checkNotNull(type, "type"); checkNotNull(qualifier, "qualifier"); return new Filter<ResourceRecordSet<?>>() { @Override public boolean apply(ResourceRecordSet<?> in) { return in != null && name.equals(in.name()) && type.equals(in.type()) && qualifier.equals(in.qualifier()); } @Override public String toString() { return "nameTypeAndQualifierEqualTo(" + name + "," + type + "," + qualifier + ")"; } }; } }
ResourceRecordSets { public static Filter<ResourceRecordSet<?>> nameTypeAndQualifierEqualTo(final String name, final String type, final String qualifier) { checkNotNull(name, "name"); checkNotNull(type, "type"); checkNotNull(qualifier, "qualifier"); return new Filter<ResourceRecordSet<?>>() { @Override public boolean apply(ResourceRecordSet<?> in) { return in != null && name.equals(in.name()) && type.equals(in.type()) && qualifier.equals(in.qualifier()); } @Override public String toString() { return "nameTypeAndQualifierEqualTo(" + name + "," + type + "," + qualifier + ")"; } }; } private  ResourceRecordSets(); }
ResourceRecordSets { public static Filter<ResourceRecordSet<?>> nameTypeAndQualifierEqualTo(final String name, final String type, final String qualifier) { checkNotNull(name, "name"); checkNotNull(type, "type"); checkNotNull(qualifier, "qualifier"); return new Filter<ResourceRecordSet<?>>() { @Override public boolean apply(ResourceRecordSet<?> in) { return in != null && name.equals(in.name()) && type.equals(in.type()) && qualifier.equals(in.qualifier()); } @Override public String toString() { return "nameTypeAndQualifierEqualTo(" + name + "," + type + "," + qualifier + ")"; } }; } private  ResourceRecordSets(); static Filter<ResourceRecordSet<?>> notNull(); static Filter<ResourceRecordSet<?>> nameEqualTo(final String name); static Filter<ResourceRecordSet<?>> nameAndTypeEqualTo(final String name,
                                                                final String type); static Filter<ResourceRecordSet<?>> nameTypeAndQualifierEqualTo(final String name,
                                                                         final String type,
                                                                         final String qualifier); static Filter<ResourceRecordSet<?>> containsRecord(Map<String, ?> record); static Filter<ResourceRecordSet<?>> alwaysVisible(); static ResourceRecordSet<SOAData> soa(ResourceRecordSet<?> soa, String email, int ttl); static ResourceRecordSet<AData> a(String name, String address); static ResourceRecordSet<AData> a(String name, int ttl, String address); static ResourceRecordSet<AData> a(String name, Collection<String> addresses); static ResourceRecordSet<AData> a(String name, int ttl, Collection<String> addresses); static ResourceRecordSet<AAAAData> aaaa(String name, String address); static ResourceRecordSet<AAAAData> aaaa(String name, int ttl, String address); static ResourceRecordSet<AAAAData> aaaa(String name, Collection<String> addresses); static ResourceRecordSet<AAAAData> aaaa(String name, int ttl,
                                                 Collection<String> addresses); static ResourceRecordSet<CNAMEData> cname(String name, String cname); static ResourceRecordSet<CNAMEData> cname(String name, int ttl, String cname); static ResourceRecordSet<CNAMEData> cname(String name, Collection<String> cnames); static ResourceRecordSet<CNAMEData> cname(String name, int ttl,
                                                   Collection<String> cnames); static ResourceRecordSet<NSData> ns(String name, String nsdname); static ResourceRecordSet<NSData> ns(String name, int ttl, String nsdname); static ResourceRecordSet<NSData> ns(String name, Collection<String> nsdnames); static ResourceRecordSet<NSData> ns(String name, int ttl, Collection<String> nsdnames); static ResourceRecordSet<PTRData> ptr(String name, String ptrdname); static ResourceRecordSet<PTRData> ptr(String name, int ttl, String ptrdname); static ResourceRecordSet<PTRData> ptr(String name, Collection<String> ptrdnames); static ResourceRecordSet<PTRData> ptr(String name, int ttl, Collection<String> ptrdnames); static ResourceRecordSet<SPFData> spf(String name, String spfdata); static ResourceRecordSet<SPFData> spf(String name, int ttl, String spfdata); static ResourceRecordSet<SPFData> spf(String name, Collection<String> spfdata); static ResourceRecordSet<SPFData> spf(String name, int ttl, Collection<String> spfdata); static ResourceRecordSet<TXTData> txt(String name, String txtdata); static ResourceRecordSet<TXTData> txt(String name, int ttl, String txtdata); static ResourceRecordSet<TXTData> txt(String name, Collection<String> txtdata); static ResourceRecordSet<TXTData> txt(String name, int ttl, Collection<String> txtdata); static ResourceRecordSet<MXData> mx(String name, String mxdata); static ResourceRecordSet<MXData> mx(String name, int ttl, String mxdata); static ResourceRecordSet<MXData> mx(String name, Collection<String> mxdata); static ResourceRecordSet<MXData> mx(String name, int ttl, Collection<String> mxdata); static ResourceRecordSet<SRVData> srv(String name, String srvdata); static ResourceRecordSet<SRVData> srv(String name, int ttl, String srvdata); static ResourceRecordSet<SRVData> srv(String name, Collection<String> srvdata); static ResourceRecordSet<SRVData> srv(String name, int ttl, Collection<String> srvdata); static ResourceRecordSet<CERTData> cert(String name, String certdata); static ResourceRecordSet<CERTData> cert(String name, int ttl, String certdata); static ResourceRecordSet<CERTData> cert(String name, Collection<String> certdata); static ResourceRecordSet<CERTData> cert(String name, int ttl,
                                                 Collection<String> certdata); static ResourceRecordSet<NAPTRData> naptr(String name, String naptrdata); static ResourceRecordSet<NAPTRData> naptr(String name, int ttl, String naptrdata); static ResourceRecordSet<NAPTRData> naptr(String name, Collection<String> naptrdata); static ResourceRecordSet<NAPTRData> naptr(String name, int ttl,
                                                   Collection<String> naptrdata); static ResourceRecordSet<SSHFPData> sshfp(String name, String sshfpdata); static ResourceRecordSet<SSHFPData> sshfp(String name, int ttl, String sshfpdata); static ResourceRecordSet<SSHFPData> sshfp(String name, Collection<String> sshfpdata); static ResourceRecordSet<SSHFPData> sshfp(String name, int ttl,
                                                   Collection<String> sshfpdata); }
ResourceRecordSets { public static Filter<ResourceRecordSet<?>> nameTypeAndQualifierEqualTo(final String name, final String type, final String qualifier) { checkNotNull(name, "name"); checkNotNull(type, "type"); checkNotNull(qualifier, "qualifier"); return new Filter<ResourceRecordSet<?>>() { @Override public boolean apply(ResourceRecordSet<?> in) { return in != null && name.equals(in.name()) && type.equals(in.type()) && qualifier.equals(in.qualifier()); } @Override public String toString() { return "nameTypeAndQualifierEqualTo(" + name + "," + type + "," + qualifier + ")"; } }; } private  ResourceRecordSets(); static Filter<ResourceRecordSet<?>> notNull(); static Filter<ResourceRecordSet<?>> nameEqualTo(final String name); static Filter<ResourceRecordSet<?>> nameAndTypeEqualTo(final String name,
                                                                final String type); static Filter<ResourceRecordSet<?>> nameTypeAndQualifierEqualTo(final String name,
                                                                         final String type,
                                                                         final String qualifier); static Filter<ResourceRecordSet<?>> containsRecord(Map<String, ?> record); static Filter<ResourceRecordSet<?>> alwaysVisible(); static ResourceRecordSet<SOAData> soa(ResourceRecordSet<?> soa, String email, int ttl); static ResourceRecordSet<AData> a(String name, String address); static ResourceRecordSet<AData> a(String name, int ttl, String address); static ResourceRecordSet<AData> a(String name, Collection<String> addresses); static ResourceRecordSet<AData> a(String name, int ttl, Collection<String> addresses); static ResourceRecordSet<AAAAData> aaaa(String name, String address); static ResourceRecordSet<AAAAData> aaaa(String name, int ttl, String address); static ResourceRecordSet<AAAAData> aaaa(String name, Collection<String> addresses); static ResourceRecordSet<AAAAData> aaaa(String name, int ttl,
                                                 Collection<String> addresses); static ResourceRecordSet<CNAMEData> cname(String name, String cname); static ResourceRecordSet<CNAMEData> cname(String name, int ttl, String cname); static ResourceRecordSet<CNAMEData> cname(String name, Collection<String> cnames); static ResourceRecordSet<CNAMEData> cname(String name, int ttl,
                                                   Collection<String> cnames); static ResourceRecordSet<NSData> ns(String name, String nsdname); static ResourceRecordSet<NSData> ns(String name, int ttl, String nsdname); static ResourceRecordSet<NSData> ns(String name, Collection<String> nsdnames); static ResourceRecordSet<NSData> ns(String name, int ttl, Collection<String> nsdnames); static ResourceRecordSet<PTRData> ptr(String name, String ptrdname); static ResourceRecordSet<PTRData> ptr(String name, int ttl, String ptrdname); static ResourceRecordSet<PTRData> ptr(String name, Collection<String> ptrdnames); static ResourceRecordSet<PTRData> ptr(String name, int ttl, Collection<String> ptrdnames); static ResourceRecordSet<SPFData> spf(String name, String spfdata); static ResourceRecordSet<SPFData> spf(String name, int ttl, String spfdata); static ResourceRecordSet<SPFData> spf(String name, Collection<String> spfdata); static ResourceRecordSet<SPFData> spf(String name, int ttl, Collection<String> spfdata); static ResourceRecordSet<TXTData> txt(String name, String txtdata); static ResourceRecordSet<TXTData> txt(String name, int ttl, String txtdata); static ResourceRecordSet<TXTData> txt(String name, Collection<String> txtdata); static ResourceRecordSet<TXTData> txt(String name, int ttl, Collection<String> txtdata); static ResourceRecordSet<MXData> mx(String name, String mxdata); static ResourceRecordSet<MXData> mx(String name, int ttl, String mxdata); static ResourceRecordSet<MXData> mx(String name, Collection<String> mxdata); static ResourceRecordSet<MXData> mx(String name, int ttl, Collection<String> mxdata); static ResourceRecordSet<SRVData> srv(String name, String srvdata); static ResourceRecordSet<SRVData> srv(String name, int ttl, String srvdata); static ResourceRecordSet<SRVData> srv(String name, Collection<String> srvdata); static ResourceRecordSet<SRVData> srv(String name, int ttl, Collection<String> srvdata); static ResourceRecordSet<CERTData> cert(String name, String certdata); static ResourceRecordSet<CERTData> cert(String name, int ttl, String certdata); static ResourceRecordSet<CERTData> cert(String name, Collection<String> certdata); static ResourceRecordSet<CERTData> cert(String name, int ttl,
                                                 Collection<String> certdata); static ResourceRecordSet<NAPTRData> naptr(String name, String naptrdata); static ResourceRecordSet<NAPTRData> naptr(String name, int ttl, String naptrdata); static ResourceRecordSet<NAPTRData> naptr(String name, Collection<String> naptrdata); static ResourceRecordSet<NAPTRData> naptr(String name, int ttl,
                                                   Collection<String> naptrdata); static ResourceRecordSet<SSHFPData> sshfp(String name, String sshfpdata); static ResourceRecordSet<SSHFPData> sshfp(String name, int ttl, String sshfpdata); static ResourceRecordSet<SSHFPData> sshfp(String name, Collection<String> sshfpdata); static ResourceRecordSet<SSHFPData> sshfp(String name, int ttl,
                                                   Collection<String> sshfpdata);  }