-
Method Summary
Checks to see if any of the sharables passed in are shared by this Shares.
boolean
boolean
void
Merges what is shared with another share.
Methods inherited from interface java.util.Set
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, spliterator, toArray, toArray
-
Method Details
-
mergeShares
void mergeShares(Shares newShares)
Merges what is shared with another share. Only the false items should be merged.
- Parameters:
newShares
- The set of shares to merge into this set of shares.
-
isSharing
- Parameters:
sharable
- The Sharable you want to check for.
- Returns:
- True if it is sharing the sharable.
-
isSharing
boolean isSharing(Shares shares)
- Parameters:
shares
- Shares to compare with.
- Returns:
- True if it is sharing the same sharables.
-
compare
Checks to see if any of the sharables passed in are shared by this Shares.
- Parameters:
shares
- Shares to check for.
- Returns:
- A Set containing all of the Sharables both sets contain.
-
setSharing
- Parameters:
sharable
- The Sharable you wish to set sharing for.
sharing
- Whether to share or not.
-
setSharing
- Parameters:
sharables
- a Set of Sharables you wish to set sharing for.
sharing
- Whether to share or not.
-
toStringList
- Returns:
- These shares as a string list.