List of usage examples for com.google.common.collect ImmutableList.Builder ImmutableList.Builder
ImmutableList.Builder
From source file:de.uniluebeck.itm.jaxb4osm.elements.OsmElement.java
/** * Returns a {@link java.util.Map} with the values of the nodes ID attributes as keys and the * {@link de.uniluebeck.itm.jaxb4osm.elements.NodeElement}s as values * * @return a {@link java.util.Map} with the values of the nodes ID attributes as keys and the * {@link de.uniluebeck.itm.jaxb4osm.elements.NodeElement}s as values *///from w w w .ja va 2s . c o m public ImmutableList<NodeElement> getNodeElements() { return new ImmutableList.Builder<NodeElement>().addAll(this.nodeElements.values()).build(); }
From source file:uk.ac.ebi.atlas.bioentity.properties.BioEntityPropertyService.java
public List<PropertyLink> fetchRelevantGoPoLinks(String ontology, int includeAtLeast) { switch (ontology) { case "go": return fetchRelevantGoLinks(includeAtLeast); case "po": return fetchRelevantPoLinks(includeAtLeast); default:/*w w w . ja va2 s.c om*/ return new ImmutableList.Builder<PropertyLink>().build(); } }
From source file:uk.ac.ebi.atlas.bioentity.properties.BioEntityPropertyService.java
public List<PropertyLink> fetchGoPoLinksOrderedByDepth(String ontology) { switch (ontology) { case "go": return fetchGoLinksOrderedByDepth(); case "po": return fetchPoLinksOrderedByDepth(); default:/*w w w.ja v a 2 s . co m*/ return new ImmutableList.Builder<PropertyLink>().build(); } }
From source file:de.uniluebeck.itm.jaxb4osm.elements.OsmElement.java
/** * Returns an {@link com.google.common.collect.ImmutableList} containing the already added * {@link de.uniluebeck.itm.jaxb4osm.elements.WayElement}s * * <b>Note:</b> The reason for making the result immutable is to keep the references returned by * {@link #getReferencingWayIDs(long)} properly * * @return an {@link com.google.common.collect.ImmutableList} containing the already added * {@link de.uniluebeck.itm.jaxb4osm.elements.WayElement}s *///from ww w . j a va 2 s .com public ImmutableList<WayElement> getWayElements() { return new ImmutableList.Builder<WayElement>().addAll(this.wayElements.values()).build(); }