Package org.onosproject.net.group
Class GroupBuckets
- java.lang.Object
-
- org.onosproject.net.group.GroupBuckets
-
public final class GroupBuckets extends java.lang.Object
Immutable collection of group bucket.
-
-
Constructor Summary
Constructors Constructor Description GroupBuckets(java.util.List<GroupBucket> buckets)
Creates a immutable list of group bucket.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<GroupBucket>
buckets()
Returns immutable list of group buckets.boolean
equals(java.lang.Object obj)
int
hashCode()
java.lang.String
toString()
-
-
-
Constructor Detail
-
GroupBuckets
public GroupBuckets(java.util.List<GroupBucket> buckets)
Creates a immutable list of group bucket.- Parameters:
buckets
- list of group bucket
-
-
Method Detail
-
buckets
public java.util.List<GroupBucket> buckets()
Returns immutable list of group buckets.- Returns:
- list of group bucket
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-