Class IdFilterEquals

    • Method Detail

      • getId

        @Contract(pure=true)
        public long getId()
      • applyOSM

        public boolean applyOSM​(OSMEntity entity)
        Description copied from interface: FilterExpression
        Apply the filter to an OSM entity.
        Specified by:
        applyOSM in interface FilterExpression
        Parameters:
        entity - the OSM entity to check.
        Returns:
        true if the entity fulfills the specified filter, otherwise false.
      • applyOSH

        public boolean applyOSH​(OSHEntity entity)
        Description copied from interface: FilterExpression
        Apply the filter to an OSH entity.

        Must be compatible with the result of FilterExpression.applyOSM(org.heigit.ohsome.oshdb.osm.OSMEntity), e.g. that it must not return false when oshEntity.getVersions().….anyMatch(applyOSM) would evaluate to true.

        Specified by:
        applyOSH in interface FilterExpression
        Parameters:
        entity - the OSH entity to check.
        Returns:
        false if the filter knows that none of the versions of the OSH entity can fulfill the specified filter, true otherwise.