Interface Emptiable

All Known Implementing Classes:
Abstract­Completeness, Abstract­Content­Information, Abstract­Element, Abstract­Envelope, Abstract­Geographic­Extent, Abstract­Geolocation­Information, Abstract­Identification, Abstract­Logical­Consistency, Abstract­Metadata, Abstract­Party, Abstract­Positional­Accuracy, Abstract­Result, Abstract­Spatial­Representation, Abstract­Temporal­Accuracy, Abstract­Thematic­Accuracy, Default­Absolute­External­Positional­Accuracy, Default­Accuracy­Of­ATime­Measurement, Default­Acquisition­Information, Default­Address, Default­Aggregate­Information, Default­Algorithm, Default­Application­Schema­Information, Default­Associated­Resource, Default­Attribute­Group, Default­Band, Default­Bounding­Polygon, Default­Browse­Graphic, Default­Citation, Default­Citation­Date, Default­Completeness­Commission, Default­Completeness­Omission, Default­Conceptual­Consistency, Default­Conformance­Result, Default­Constraints, Default­Contact, Default­Coupled­Resource, Default­Coverage­Description, Default­Coverage­Result, Default­Data­File, Default­Data­Identification, Default­Data­Quality, Default­Digital­Transfer­Options, Default­Dimension, Default­Distribution, Default­Distributor, Default­Domain­Consistency, Default­Environmental­Record, Default­Event, Default­Extended­Element­Information, Default­Extent, Default­Feature­Catalogue­Description, Default­Feature­Type­Info, Default­Format, Default­Format­Consistency, Default­GCP, Default­GCPCollection, Default­Geographic­Bounding­Box, Default­Geographic­Description, Default­Geometric­Objects, Default­Georectified, Default­Georeferenceable, Default­Gridded­Data­Positional­Accuracy, Default­Grid­Spatial­Representation, Default­Identifier, Default­Image­Description, Default­Individual, Default­Instrument, Default­Keyword­Class, Default­Keywords, Default­Legal­Constraints, Default­Lineage, Default­Maintenance­Information, Default­Medium, Default­Metadata, Default­Metadata­Extension­Information, Default­Metadata­Scope, Default­Nominal­Resolution, Default­Non­Quantitative­Attribute­Accuracy, Default­Objective, Default­Online­Resource, Default­Operation, Default­Operation­Chain­Metadata, Default­Operation­Metadata, Default­Organisation, Default­Plan, Default­Platform, Default­Platform­Pass, Default­Portrayal­Catalogue­Reference, Default­Processing, Default­Process­Step, Default­Process­Step­Report, Default­Quantitative­Attribute­Accuracy, Default­Quantitative­Result, Default­Range­Dimension, Default­Range­Element­Description, Default­Relative­Internal­Positional­Accuracy, Default­Releasability, Default­Representative­Fraction, Default­Requested­Date, Default­Requirement, Default­Resolution, Default­Responsibility, Default­Responsible­Party, Default­Sample­Dimension, Default­Scope, Default­Scope, Default­Scope­Description, Default­Security­Constraints, Default­Series, Default­Service­Identification, Default­Source, Default­Spatial­Temporal­Extent, Default­Standard­Order­Process, Default­Telephone, Default­Temporal­Consistency, Default­Temporal­Extent, Default­Temporal­Validity, Default­Thematic­Classification­Correctness, Default­Topological­Consistency, Default­Usability, Default­Usage, Default­Vector­Spatial­Representation, Default­Vertical­Extent, Envelope2D, General­Envelope, Immutable­Envelope, ISOMetadata, Measurement­Range, Modifiable­Metadata, Number­Range, Range

public interface Emptiable
Interface of classes for which empty instances may exist. This interface is typically used for filtering empty elements from a tree of objects. Some examples of emptiable classes are:
  • Range when the lower bounds is equals to the upper bounds and at least one bound is exclusive.
  • Abstract­Metadata when no property value has been given to the metadata, or all properties are themselves empty.
  • Abstract­Envelope when the span, surface or volume inside the envelope is zero.
SIS collections do not implement this interface even if they provide a is­Empty() method, for consistency with collections in java​.util and other libraries. This policy avoid duplicated calls to is­Empty() methods when the caller needs to check for both Collection and Emptiable interfaces.
Since:
0.4

Defined in the sis-utility module

  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns true if this instance is empty.
  • Method Details