Top Description Fields Constructors Methods
com.google.common.graph

pack-priv abstract Class IncidentEdgeSet<N>

extends AbstractSet<EndpointPair<N>>
Class Inheritance
Annotations
@ElementTypesAreNonnullByDefault
Imports
java.util.AbstractSet, .Set, javax.annotation.CheckForNull

Abstract base class for an incident edges set that allows different implementations of AbstractSet#iterator().

Field Summary

Modifier and TypeField and Description
pack-priv final BaseGraph<N>
pack-priv final N

Constructor Summary

AccessConstructor and Description
pack-priv
IncidentEdgeSet(BaseGraph<N> graph, N node)

Method Summary

Modifier and TypeMethod and Description
public boolean
contains(Object
element whose presence in this set is to be tested
obj
)

Overrides java.util.AbstractCollection.contains.

Implements java.util.Set.contains, java.util.Collection.contains.

Returns true if this set contains the specified element.
public boolean
remove(Object
object to be removed from this set, if present
o
)

Overrides java.util.AbstractCollection.remove.

Implements java.util.Set.remove, java.util.Collection.remove.

Removes the specified element from this set if it is present (optional operation).
public int
size()

Implements abstract java.util.AbstractCollection.size.

Implements java.util.Set.size, java.util.Collection.size.

Returns the number of elements in this set (its cardinality).
Inherited from java.util.AbstractSet:
equalshashCoderemoveAll

Field Detail

graphback to summary
pack-priv final BaseGraph<N> graph
nodeback to summary
pack-priv final N node

Constructor Detail

IncidentEdgeSetback to summary
pack-priv IncidentEdgeSet(BaseGraph<N> graph, N node)

Method Detail

containsback to summary
public boolean contains(Object obj)

Overrides java.util.AbstractCollection.contains.

Implements java.util.Set.contains, java.util.Collection.contains.

Doc from java.util.Set.contains.

Returns true if this set contains the specified element. More formally, returns true if and only if this set contains an element e such that Objects.equals(o, e).

Parameters
obj:Object

element whose presence in this set is to be tested

Returns:boolean

true if this set contains the specified element

Annotations
@Override
removeback to summary
public boolean remove(Object o)

Overrides java.util.AbstractCollection.remove.

Implements java.util.Set.remove, java.util.Collection.remove.

Doc from java.util.Set.remove.

Removes the specified element from this set if it is present (optional operation). More formally, removes an element e such that Objects.equals(o, e), if this set contains such an element. Returns true if this set contained the element (or equivalently, if this set changed as a result of the call). (This set will not contain the element once the call returns.)

Parameters
o:Object

object to be removed from this set, if present

Returns:boolean

true if this set contained the specified element

Annotations
@Override
sizeback to summary
public int size()

Implements abstract java.util.AbstractCollection.size.

Implements java.util.Set.size, java.util.Collection.size.

Doc from java.util.Set.size.

Returns the number of elements in this set (its cardinality). If this set contains more than Integer.MAX_VALUE elements, returns Integer.MAX_VALUE.

Returns:int

the number of elements in this set (its cardinality)

Annotations
@Override