Class ArtifactTransferPolicyBase

    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected abstract void insertCanonicalAndPacked​(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor canonical, org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor packed, java.util.LinkedList<org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor> list)
      Inserts the canonical and packed descriptor in preferred order.
      java.util.List<org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor> sortFormatsByPreference​(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor[] artifactDescriptors)
      Sorts a list of artifact formats by the order in which they should be tried to be used for a (non-raw) artifact read operation.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ArtifactTransferPolicyBase

        ArtifactTransferPolicyBase()
    • Method Detail

      • sortFormatsByPreference

        public final java.util.List<org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor> sortFormatsByPreference​(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor[] artifactDescriptors)
        Description copied from class: ArtifactTransferPolicy
        Sorts a list of artifact formats by the order in which they should be tried to be used for a (non-raw) artifact read operation.
        Specified by:
        sortFormatsByPreference in class ArtifactTransferPolicy
        Returns:
        the list of formats, sorted by preference
      • insertCanonicalAndPacked

        protected abstract void insertCanonicalAndPacked​(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor canonical,
                                                         org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor packed,
                                                         java.util.LinkedList<org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor> list)
        Inserts the canonical and packed descriptor in preferred order.
        Parameters:
        canonical - The canonical descriptor to be inserted in preferred order, or null if the list to be sorted did not contain a canonical descriptor.
        packed - The packed descriptor to be inserted in preferred order, or null if the list to be sorted did not contain a packed descriptor.
        list - All other descriptors from the list to be sorted. To be completed by the canonical and packed descriptors (if available).