Package org.jboss.dna.graph.property.basic

Examples of org.jboss.dna.graph.property.basic.BasicSingleValueProperty$ValueIterator


    LocationWithPathAndUuid( Path path,
                             UUID uuid ) {
        assert path != null;
        assert uuid != null;
        this.path = path;
        this.idProperties = Collections.singletonList((Property)new BasicSingleValueProperty(DnaLexicon.UUID, uuid));

        // Paths are immutable, Properties are immutable, the idProperties list
        // is wrapped in an unmodifiableList by the Location factory methods...
        // ... so we can cache the hash code.
        hashCode = HashCode.compute(this.path, idProperties);
View Full Code Here


     * @see Location#with(UUID)
     */
    @Override
    public Location with( UUID uuid ) {
        if (uuid == null) return this;
        Property newProperty = new BasicSingleValueProperty(DnaLexicon.UUID, uuid);
        if (this.hasIdProperties()) {
            Property existing = this.getIdProperty(DnaLexicon.UUID);
            if (existing != null && existing.equals(newProperty)) return this;
        }

View Full Code Here

        Property idProperty = idProperties.get(0); // fast
        if (DnaLexicon.UUID.equals(idProperty.getName())) {
            return new LocationWithUuid(uuid);
        }
        List<Property> newIdProperties = new ArrayList<Property>(idProperties.size() + 1);
        newIdProperties.add(new BasicSingleValueProperty(DnaLexicon.UUID, uuid));
        newIdProperties.addAll(idProperties);
        return new LocationWithProperties(newIdProperties);
    }
View Full Code Here

TOP

Related Classes of org.jboss.dna.graph.property.basic.BasicSingleValueProperty$ValueIterator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.