/** * Checks if this dimension has a resolution * * @param domain */ public boolean hasResolution(String domain) { Utilities.ensureNonNull("name", domain); return metadataNames.contains(domain.toUpperCase() + "_DOMAIN_RESOLUTION"); }
public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof PropertyImpl)) { return false; } PropertyImpl other = (PropertyImpl) obj; if (!Utilities.equals(descriptor, other.descriptor)) return false; if (!Utilities.deepEquals(value, other.value)) return false; return true; }
@Override public int hashCode() { if(hashCode<0) { int result =Utilities.deepHashCode( elements ); result=Utilities.deepHashCode( minimums ); result=Utilities.hash( getName(),result ); hashCode=Utilities.hash(getApproximateDomainRange(),hashCode ); } return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (!(obj instanceof TiePoint)) return false; final TiePoint that = (TiePoint) obj; if (Utilities.deepEquals(this.values, that.values)) return true; return false; }
/** * Finds all available implementations of {@link CoordinateHandlerSpi} which have registered * using the services mechanism. * * @return An unmodifiable {@link Set} of all discovered modules which have registered factories */ public static synchronized Set<CoordinateHandlerSpi> getAvailableHandlers() { if (LOGGER.isLoggable(Level.FINE)) { LOGGER.fine("Coordinate Handlers scan"); } // get all CoordinateHandlerSpi implementations scanForPlugins(); return getServiceRegistry() .getFactories(CoordinateHandlerSpi.class, true) .collect(toUnmodifiableSet()); }
/** * Override of equals. * * @param other the object to be tested for equality. * @return whether other is equal to this attribute Type. */ public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof Attribute)) { return false; } Attribute other = (Attribute) obj; if (!Utilities.equals(getDescriptor(), other.getDescriptor())) { return false; } if (!Utilities.deepEquals(getValue(), other.getValue())) { return false; } return Utilities.equals(getIdentifier(), other.getIdentifier()); }
public boolean equals(Object o) { if (!(o instanceof AttributeDescriptorImpl)) return false; AttributeDescriptorImpl d = (AttributeDescriptorImpl) o; return super.equals(o) && Utilities.deepEquals(defaultValue, d.defaultValue); }
/** * Finds all avalaible implementations of {@link GridFormatFactorySpi} which have registered * using the services mechanism, and that have the appropriate libraries on the classpath. * * @return An unmodifiable {@link Set} of all discovered datastores which have registered * factories, and whose available method returns true. */ public static synchronized Set<PropertiesCollectorSPI> getPropertiesCollectorSPI() { // get all GridFormatFactorySpi implementations scanForPlugins(); return getServiceRegistry() .getFactories(PropertiesCollectorSPI.class, true) .filter(PropertiesCollectorSPI::isAvailable) .collect(toUnmodifiableSet()); }
/** Default implementation, implementers should override. */ @Override public boolean canProduce(String outputFormat) { Utilities.ensureNonNull("outputFormat", outputFormat); return outputFormats.contains(outputFormat) || mimeTypes.values().contains(outputFormat); }
if (!Utilities.equals(descriptor, att.descriptor)) return false; if (!Utilities.equals(id, att.id)) return false; return Utilities.deepEquals(value, this.value);
@Override public boolean equals(Object obj) { if(this==obj) return true; if(!(obj instanceof TiePoint)) return false; final TiePoint that= (TiePoint) obj; if(Utilities.deepEquals(this.values, that.values)) return true; return false; }
/** * Finds all available implementations of {@link Driver} which have registered using the * services mechanism, and that have the appropriate libraries on the class-path. * * @return An unmodifiable {@link Set} of all discovered drivers which have registered * factories, and whose available method returns true. */ public static synchronized Set<Driver> getAvailableDrivers() { // get all Driver implementations scanForPlugins(); return getServiceRegistry() .getFactories(Driver.class, false) .filter(Driver::isAvailable) .collect(toUnmodifiableSet()); }
public ReaderDimensionsAccessor(GridCoverage2DReader reader) throws IOException { Utilities.ensureNonNull("reader", reader); this.reader = reader; final String[] dimensions = reader.getMetadataNames(); if (dimensions != null) { metadataNames.addAll(Arrays.asList(dimensions)); } }
/** Compare this name with the specified object for equality. */ @Override public boolean equals(final Object object) { if (object instanceof AxisName) { final AxisName that = (AxisName) object; return Utilities.equals(this.name, that.name) && Utilities.equals(this.description, that.description); } return false; }
public boolean equals(Object obj) { if ( this == obj ) { return true; } if (!(obj instanceof PropertyImpl)) { return false; } PropertyImpl other = (PropertyImpl) obj; if (!Utilities.equals(descriptor, other.descriptor)) return false; if (!Utilities.deepEquals(value, other.value)) return false; return true; }