Class Artifact<C extends Artifact<C>>

    • Constructor Detail

      • Artifact

        protected Artifact​(java.lang.Class<? extends Linker> linker)
        Constructor.
        Parameters:
        linker - the type of Linker that instantiated the Artifact.
    • Method Detail

      • compareTo

        public final int compareTo​(Artifact<?> o)
        Specified by:
        compareTo in interface java.lang.Comparable<C extends Artifact<C>>
      • equals

        public final boolean equals​(java.lang.Object obj)
        Delegates to compareTo(Artifact).
        Overrides:
        equals in class java.lang.Object
      • getLinker

        public final java.lang.Class<? extends Linker> getLinker()
        Returns the Linker that created the Artifact.
      • isTransferableFromShards

        public final boolean isTransferableFromShards()
        Returns whether the Transferable annotation is present on this class. See Transferable for the implications.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • compareToComparableArtifact

        protected abstract int compareToComparableArtifact​(C o)
        Performs comparison with an artifact of a compatible base type. Objects which compare to 0 are assumed equal, and must return the same hashCode().
      • getComparableArtifactType

        protected abstract java.lang.Class<C> getComparableArtifactType()
        Returns the base type to use for comparisons between Artifacts. All concrete implementations of this methods must be final.