public static final class EquivalenceGraph.Adjacents extends Object implements Identifiable, Sourced
An entry in an equivalence adjacency list. A subject resource reference and sets of references:
| Constructor and Description |
|---|
EquivalenceGraph.Adjacents(ResourceRef subject,
org.joda.time.DateTime created,
Set<ResourceRef> efferent,
Set<ResourceRef> afferent) |
| Modifier and Type | Method and Description |
|---|---|
EquivalenceGraph.Adjacents |
copyWithAfferent(ResourceRef ref) |
EquivalenceGraph.Adjacents |
copyWithEfferent(ResourceRef ref) |
EquivalenceGraph.Adjacents |
copyWithEfferents(Iterable<ResourceRef> refs) |
EquivalenceGraph.Adjacents |
copyWithoutAfferent(ResourceRef ref) |
boolean |
equals(Object that) |
com.google.common.collect.Sets.SetView<ResourceRef> |
getAdjacent() |
com.google.common.collect.ImmutableSet<ResourceRef> |
getAfferent() |
org.joda.time.DateTime |
getCreated() |
com.google.common.collect.ImmutableSet<ResourceRef> |
getEfferent() |
Id |
getId() |
org.atlasapi.media.entity.Publisher |
getPublisher() |
ResourceRef |
getRef() |
com.google.common.collect.Sets.SetView<ResourceRef> |
getStrongAdjacent() |
boolean |
hasAfferentAdjacent(ResourceRef ref) |
boolean |
hasEfferentAdjacent(ResourceRef ref) |
int |
hashCode() |
String |
toString() |
static EquivalenceGraph.Adjacents |
valueOf(ResourceRef subject) |
public EquivalenceGraph.Adjacents(ResourceRef subject, org.joda.time.DateTime created, Set<ResourceRef> efferent, Set<ResourceRef> afferent)
public static final EquivalenceGraph.Adjacents valueOf(ResourceRef subject)
public Id getId()
getId in interface Identifiablepublic org.atlasapi.media.entity.Publisher getPublisher()
getPublisher in interface Sourcedpublic ResourceRef getRef()
public org.joda.time.DateTime getCreated()
public com.google.common.collect.Sets.SetView<ResourceRef> getAdjacent()
public com.google.common.collect.Sets.SetView<ResourceRef> getStrongAdjacent()
public com.google.common.collect.ImmutableSet<ResourceRef> getEfferent()
public com.google.common.collect.ImmutableSet<ResourceRef> getAfferent()
public boolean hasEfferentAdjacent(ResourceRef ref)
public boolean hasAfferentAdjacent(ResourceRef ref)
public EquivalenceGraph.Adjacents copyWithEfferent(ResourceRef ref)
public EquivalenceGraph.Adjacents copyWithEfferents(Iterable<ResourceRef> refs)
public EquivalenceGraph.Adjacents copyWithAfferent(ResourceRef ref)
public EquivalenceGraph.Adjacents copyWithoutAfferent(ResourceRef ref)
Copyright © 2014. All rights reserved.