Package org.apache.sis.util
Interface Emptiable
-
- All Known Implementing Classes:
AbstractCompleteness,AbstractContentInformation,AbstractElement,AbstractEnvelope,AbstractGeographicExtent,AbstractGeolocationInformation,AbstractIdentification,AbstractLogicalConsistency,AbstractMetadata,AbstractParty,AbstractPositionalAccuracy,AbstractResult,AbstractSpatialRepresentation,AbstractTemporalAccuracy,AbstractThematicAccuracy,DefaultAbsoluteExternalPositionalAccuracy,DefaultAccuracyOfATimeMeasurement,DefaultAcquisitionInformation,DefaultAddress,DefaultAggregateInformation,DefaultAlgorithm,DefaultApplicationSchemaInformation,DefaultAssociatedResource,DefaultAttributeGroup,DefaultBand,DefaultBoundingPolygon,DefaultBrowseGraphic,DefaultCitation,DefaultCitationDate,DefaultCompletenessCommission,DefaultCompletenessOmission,DefaultConceptualConsistency,DefaultConformanceResult,DefaultConstraints,DefaultContact,DefaultCoupledResource,DefaultCoverageDescription,DefaultCoverageResult,DefaultDataFile,DefaultDataIdentification,DefaultDataQuality,DefaultDigitalTransferOptions,DefaultDimension,DefaultDistribution,DefaultDistributor,DefaultDomainConsistency,DefaultEnvironmentalRecord,DefaultEvent,DefaultExtendedElementInformation,DefaultExtent,DefaultFeatureCatalogueDescription,DefaultFeatureTypeInfo,DefaultFormat,DefaultFormatConsistency,DefaultGCP,DefaultGCPCollection,DefaultGeographicBoundingBox,DefaultGeographicDescription,DefaultGeometricObjects,DefaultGeorectified,DefaultGeoreferenceable,DefaultGriddedDataPositionalAccuracy,DefaultGridSpatialRepresentation,DefaultIdentifier,DefaultImageDescription,DefaultIndividual,DefaultInstrument,DefaultKeywordClass,DefaultKeywords,DefaultLegalConstraints,DefaultLineage,DefaultMaintenanceInformation,DefaultMedium,DefaultMetadata,DefaultMetadataExtensionInformation,DefaultMetadataScope,DefaultNominalResolution,DefaultNonQuantitativeAttributeAccuracy,DefaultObjective,DefaultOnlineResource,DefaultOperation,DefaultOperationChainMetadata,DefaultOperationMetadata,DefaultOrganisation,DefaultPlan,DefaultPlatform,DefaultPlatformPass,DefaultPortrayalCatalogueReference,DefaultProcessing,DefaultProcessStep,DefaultProcessStepReport,DefaultQuantitativeAttributeAccuracy,DefaultQuantitativeResult,DefaultRangeDimension,DefaultRangeElementDescription,DefaultRelativeInternalPositionalAccuracy,DefaultReleasability,DefaultRepresentativeFraction,DefaultRequestedDate,DefaultRequirement,DefaultResolution,DefaultResponsibility,DefaultResponsibleParty,DefaultSampleDimension,DefaultScope,DefaultScope,DefaultScopeDescription,DefaultSecurityConstraints,DefaultSeries,DefaultServiceIdentification,DefaultSource,DefaultSpatialTemporalExtent,DefaultStandardOrderProcess,DefaultTelephone,DefaultTemporalConsistency,DefaultTemporalExtent,DefaultTemporalValidity,DefaultThematicClassificationCorrectness,DefaultTopologicalConsistency,DefaultUsability,DefaultUsage,DefaultVectorSpatialRepresentation,DefaultVerticalExtent,Envelope2D,GeneralEnvelope,ImmutableEnvelope,ISOMetadata,MeasurementRange,ModifiableMetadata,NumberRange,Range
public interface EmptiableInterface 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:Rangewhen the lower bounds is equals to the upper bounds and at least one bound is exclusive.AbstractMetadatawhen no property value has been given to the metadata, or all properties are themselves empty.AbstractEnvelopewhen the span, surface or volume inside the envelope is zero.
isEmpty()method, for consistency with collections injava.utiland other libraries. This policy avoid duplicated calls toisEmpty()methods when the caller needs to check for bothCollectionandEmptiableinterfaces.- Since:
- 0.4
Defined in the
sis-utilitymodule
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisEmpty()Returnstrueif this instance is empty.
-
-
-
Method Detail
-
isEmpty
boolean isEmpty()
Returnstrueif this instance is empty. The definition of "emptiness" may vary between implementations. For exampleDefaultGeographicBoundingBox.isEmpty()returnstrueif all values areNaN(i.e. uninitialized) whileAbstractEnvelope.isEmpty()returnstrueif the geometric surface is zero.- Returns:
trueif this instance is empty, orfalseotherwise.
-
-