@Test public void includeLocale() { includes(new DocumentReference("wiki", "space", "document", Locale.ENGLISH)); assertMatches(new DocumentReference("wiki", "space", "document")); assertMatches(new DocumentReference("wiki", "space", "document", Locale.ENGLISH)); assertNotMatches(new DocumentReference("wiki", "space", "document", Locale.FRENCH)); assertNotMatches(new DocumentReference("wiki", "space", "document", Locale.ROOT)); includes(new DocumentReference("wiki", "space", "document", Locale.FRENCH)); assertMatches(new DocumentReference("wiki", "space", "document")); assertMatches(new DocumentReference("wiki", "space", "document", Locale.ENGLISH)); assertMatches(new DocumentReference("wiki", "space", "document", Locale.FRENCH)); assertNotMatches(new DocumentReference("wiki", "space", "document", Locale.ROOT)); }
public EntityReferenceSet includes(EntityReference reference) { if (this.includes == null) { this.includes = new EntityReferenceEntry(); } add(reference, this.includes); return this; }
EntityReferenceSet { public EntityReferenceSet includes(EntityReference reference) { if (this.includes == null) { this.includes = new EntityReferenceEntry(); } add(reference, this.includes); return this; } }
EntityReferenceSet { public EntityReferenceSet includes(EntityReference reference) { if (this.includes == null) { this.includes = new EntityReferenceEntry(); } add(reference, this.includes); return this; }  }
EntityReferenceSet { public EntityReferenceSet includes(EntityReference reference) { if (this.includes == null) { this.includes = new EntityReferenceEntry(); } add(reference, this.includes); return this; }  EntityReferenceSet includes(EntityReference reference); EntityReferenceSet excludes(EntityReference reference); boolean matches(EntityReference reference); }
EntityReferenceSet { public EntityReferenceSet includes(EntityReference reference) { if (this.includes == null) { this.includes = new EntityReferenceEntry(); } add(reference, this.includes); return this; }  EntityReferenceSet includes(EntityReference reference); EntityReferenceSet excludes(EntityReference reference); boolean matches(EntityReference reference);  }