org.jboss.dna.connector.federation.merge
Class FourContributionMergePlan

java.lang.Object
  extended by org.jboss.dna.connector.federation.merge.MergePlan
      extended by org.jboss.dna.connector.federation.merge.FourContributionMergePlan
All Implemented Interfaces:
Serializable, Iterable<Contribution>

@ThreadSafe
public class FourContributionMergePlan
extends MergePlan

Author:
Randall Hauch
See Also:
Serialized Form

Method Summary
 int getContributionCount()
          
 Contribution getContributionFrom(String sourceName)
          Get the contribution from the source with the supplied name.
 int hashCode()
          
 boolean isSource(String sourceName)
          Return whether the named source was consulted for a contribution.
 Iterator<Contribution> iterator()
          
 
Methods inherited from class org.jboss.dna.connector.federation.merge.MergePlan
addContribution, create, create, equals, getAnnotation, getAnnotationCount, getAnnotationNames, getAnnotations, getExpirationTimeInUtc, getRealContributionCount, isExpired, setAnnotation, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getContributionCount

public int getContributionCount()

Specified by:
getContributionCount in class MergePlan
See Also:
MergePlan.getContributionCount()

getContributionFrom

public Contribution getContributionFrom(String sourceName)
Get the contribution from the source with the supplied name. Note that contributions always include sources that contribute information and sources that contribute no information. If a source is not included in this list, its contributions are unknown; that is, it is unknown whether that source does or does not contribute to the node.

Specified by:
getContributionFrom in class MergePlan
Parameters:
sourceName - the name of the source
Returns:
the contribution, or null if the contribution of the source is unknown
See Also:
MergePlan.getContributionFrom(java.lang.String)

iterator

public Iterator<Contribution> iterator()

See Also:
Iterable.iterator()

isSource

public boolean isSource(String sourceName)
Return whether the named source was consulted for a contribution.

Specified by:
isSource in class MergePlan
Parameters:
sourceName - the name of the source
Returns:
true if the source has some contribution (even if it is an EmptyContribution)
See Also:
MergePlan.isSource(java.lang.String)

hashCode

public int hashCode()

Overrides:
hashCode in class Object
See Also:
Object.hashCode()


Copyright © 2008-Present JBoss a division of Red Hat. All Rights Reserved.