org.jboss.dna.connector.federation.contribution
Class NonEmptyContribution

java.lang.Object
  extended by org.jboss.dna.connector.federation.contribution.Contribution
      extended by org.jboss.dna.connector.federation.contribution.NonEmptyContribution
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
MultiChildContribution, MultiPropertyContribution, OneChildContribution, OnePropertyContribution, ThreePropertyContribution, TwoChildContribution, TwoPropertyContribution

@Immutable
public abstract class NonEmptyContribution
extends Contribution

The record of a non-empty source contribution from a single location within the source.

Author:
Randall Hauch
See Also:
Serialized Form

Method Summary
 boolean equals(Object obj)
          

This implementation only compares the source name.

 Location getLocationInSource()
          Get the source-specific location of this information.
 int hashCode()
          

This implementation returns the hash code of the source name, and is compatible with the implementation of Contribution.equals(Object). This implementation returns the hash code of the source name, and is compatible with the implementation of equals(Object).

 
Methods inherited from class org.jboss.dna.connector.federation.contribution.Contribution
create, create, create, create, create, createPlaceholder, createPlaceholder, getChildren, getChildrenCount, getExpirationTimeInUtc, getProperties, getProperty, getPropertyCount, getSourceName, isEmpty, isExpired, isPlaceholder, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getLocationInSource

public Location getLocationInSource()
Get the source-specific location of this information.

Specified by:
getLocationInSource in class Contribution
Returns:
the location as known to the source, or null for EmptyContribution
See Also:
Contribution.getLocationInSource()

hashCode

public int hashCode()

This implementation returns the hash code of the source name, and is compatible with the implementation of Contribution.equals(Object).

This implementation returns the hash code of the source name, and is compatible with the implementation of equals(Object).

Overrides:
hashCode in class Contribution

equals

public boolean equals(Object obj)

This implementation only compares the source name.

Overrides:
equals in class Contribution


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