Class LabelPermission.WithValue

    • Constructor Detail

      • WithValue

        public WithValue​(LabelType type,
                         LabelValue value)
        Construct a reference to a label at a specific value.
        Parameters:
        type - description of the label.
        value - numeric score assigned to the label.
      • WithValue

        public WithValue​(LabelType type,
                         short value)
        Construct a reference to a label at a specific value.
        Parameters:
        type - description of the label.
        value - numeric score assigned to the label.
      • WithValue

        public WithValue​(AbstractLabelPermission.ForUser forUser,
                         LabelType type,
                         LabelValue value)
        Construct a reference to a label at a specific value.
        Parameters:
        forUser - SELF (default) or ON_BEHALF_OF for labelAs behavior.
        type - description of the label.
        value - numeric score assigned to the label.
      • WithValue

        public WithValue​(AbstractLabelPermission.ForUser forUser,
                         LabelType type,
                         short value)
        Construct a reference to a label at a specific value.
        Parameters:
        forUser - SELF (default) or ON_BEHALF_OF for labelAs behavior.
        type - description of the label.
        value - numeric score assigned to the label.
      • WithValue

        public WithValue​(String name,
                         short value)
        Construct a reference to a label at a specific value.
        Parameters:
        name - name of the label, e.g. "Code-Review" or "Verified".
        value - numeric score assigned to the label.
      • WithValue

        public WithValue​(AbstractLabelPermission.ForUser forUser,
                         String name,
                         short value)
        Construct a reference to a label at a specific value.
        Parameters:
        forUser - SELF (default) or ON_BEHALF_OF for labelAs behavior.
        name - name of the label, e.g. "Code-Review" or "Verified".
        value - numeric score assigned to the label.
      • WithValue

        public WithValue​(LabelVote label)
        Construct a reference to a label at a specific value.
        Parameters:
        label - label name and vote.
      • WithValue

        public WithValue​(AbstractLabelPermission.ForUser forUser,
                         LabelVote label)
        Construct a reference to a label at a specific value.
        Parameters:
        forUser - SELF (default) or ON_BEHALF_OF for labelAs behavior.
        label - label name and vote.