Class PrimitiveTransferData

  • All Implemented Interfaces:
    java.io.Serializable

    public final class PrimitiveTransferData
    extends java.lang.Object
    implements java.io.Serializable
    A list of primitives that are transferred. The list allows you to implicitly add primitives. It distinguishes between primitives that were directly added and implicitly added ones.
    Since:
    10604
    See Also:
    Serialized Form
    • Constructor Detail

      • PrimitiveTransferData

        private PrimitiveTransferData​(java.util.Collection<? extends OsmPrimitive> primitives,
                                      PrimitiveTransferData.ReferenceGetter referencedGetter)
        Create the new transfer data.
        Parameters:
        primitives - The primitives to transfer
        referencedGetter - A function that allows to get the primitives referenced by the primitives variable. It will be queried recursively.
    • Method Detail

      • getReferenced

        public java.util.Collection<PrimitiveDatagetReferenced()
        Gets all primitives that were added because they were referenced.
        Returns:
        The primitives
      • getAll

        public java.util.Collection<PrimitiveDatagetAll()
        Gets a List of all primitives added to this set.
        Returns:
        That list.
      • getCenter

        public EastNorth getCenter()
        Compute the center of all nodes.
        Returns:
        The center or null if this buffer has no location.
      • hasIncompleteData

        public boolean hasIncompleteData()
        Tests whether this set contains any primitives that have invalid data.
        Returns:
        true if invalid data is contained in this set.