Codota Logo
DefaultDistribution.copyCollection
Code IndexAdd Codota to your IDE (free)

How to use
copyCollection
method
in
org.apache.sis.metadata.iso.distribution.DefaultDistribution

Best Java code snippets using org.apache.sis.metadata.iso.distribution.DefaultDistribution.copyCollection (Showing top 2 results out of 315)

  • Common ways to obtain DefaultDistribution
private void myMethod () {
DefaultDistribution d =
  • Codota Iconnew DefaultDistribution()
  • Smart code suggestions by Codota
}
origin: org.apache.sis.core/sis-metadata

/**
 * Constructs a new instance initialized with the values from the specified metadata object.
 * This is a <cite>shallow</cite> copy constructor, since the other metadata contained in the
 * given object are not recursively copied.
 *
 * @param  object  the metadata to copy values from, or {@code null} if none.
 *
 * @see #castOrCopy(Distribution)
 */
public DefaultDistribution(final Distribution object) {
  super(object);
  if (object != null) {
    distributionFormats = copyCollection(object.getDistributionFormats(), Format.class);
    distributors        = copyCollection(object.getDistributors(), Distributor.class);
    transferOptions     = copyCollection(object.getTransferOptions(), DigitalTransferOptions.class);
    if (object instanceof DefaultDistribution) {
      description = ((DefaultDistribution) object).getDescription();
    }
  }
}
origin: apache/sis

/**
 * Constructs a new instance initialized with the values from the specified metadata object.
 * This is a <cite>shallow</cite> copy constructor, since the other metadata contained in the
 * given object are not recursively copied.
 *
 * @param  object  the metadata to copy values from, or {@code null} if none.
 *
 * @see #castOrCopy(Distribution)
 */
public DefaultDistribution(final Distribution object) {
  super(object);
  if (object != null) {
    distributionFormats = copyCollection(object.getDistributionFormats(), Format.class);
    distributors        = copyCollection(object.getDistributors(), Distributor.class);
    transferOptions     = copyCollection(object.getTransferOptions(), DigitalTransferOptions.class);
    if (object instanceof DefaultDistribution) {
      description = ((DefaultDistribution) object).getDescription();
    }
  }
}
org.apache.sis.metadata.iso.distributionDefaultDistributioncopyCollection

Popular methods of DefaultDistribution

  • <init>
    Constructs a new instance initialized with the values from the specified metadata object. This is a
  • setDistributors
    Sets information about the distributor.
  • castOrCopy
    Returns a SIS metadata implementation with the values of the given arbitrary implementation. This me
  • checkWritePermission
  • getDescription
    Returns a brief description of a set of distribution options.
  • getDistributors
    Provides information about the distributor.
  • nonNullCollection
  • setDistributionFormats
    Sets a description of the format of the data to be distributed.
  • setTransferOptions
    Sets information about technical means and media by which a resource is obtained from the distributo
  • writeCollection

Popular in Java

  • Making http post requests using okhttp
  • notifyDataSetChanged (ArrayAdapter)
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • Permission (java.security)
    Abstract class for representing access to a system resource. All permissions have a name (whose inte
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • JFileChooser (javax.swing)
  • JLabel (javax.swing)
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now