Interface Zones<Z extends Zone>

    • Method Detail

      • getNumberOfCentroids

        default int getNumberOfCentroids()
        Each zone has exactly one centroid, so this is functionally equivalent to calling size()
        Returns:
        number of centroids
      • getByXmlId

        default Z getByXmlId​(String xmlId)
        Find the first entry with matching XML id, not efficient as not indexed by XML id, so use carefully
        Parameters:
        xmlId - to find
        Returns:
        zone found, null if not present
      • deepCloneWithMapping

        Zones deepCloneWithMapping​(BiConsumer<Z,​Z> mapper)
        Deep clone implementation where the mapping for its internal copies is captured by the provided mapper
        Specified by:
        deepCloneWithMapping in interface ManagedIdEntities<Z extends Zone>
        Parameters:
        mapper - to apply to each mapping between original and copy
        Returns:
        copy