Package com.google.gerrit.server.util
Class AttentionSetUtil
- java.lang.Object
-
- com.google.gerrit.server.util.AttentionSetUtil
-
public class AttentionSetUtil extends Object
Common helpers for dealing with attention set data structures.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.google.common.collect.ImmutableSet<AttentionSetUpdate>
additionsOnly(Collection<AttentionSetUpdate> updates)
Returns only updates where the user was added.static void
validateInput(AttentionSetInput input)
Validates the input for AttentionSetInput.
-
-
-
Method Detail
-
additionsOnly
public static com.google.common.collect.ImmutableSet<AttentionSetUpdate> additionsOnly(Collection<AttentionSetUpdate> updates)
Returns only updates where the user was added.
-
validateInput
public static void validateInput(AttentionSetInput input) throws BadRequestException
Validates the input for AttentionSetInput. This must be called for all inputs that relate to adding or removing attention set entries, except forRemoveFromAttentionSet
.- Throws:
BadRequestException
-
-