Class Moderation

  • All Implemented Interfaces:

    
    public class Moderation
    
                        

    Represents moderation status.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      Moderation() Construct a Moderation object that is not flagged.
      Moderation(String flaggedText) Construct a Moderation object that is flagged.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      boolean flagged() Returns true if the text was flagged.
      String flaggedText() Returns the text that was flagged.
      boolean equals(Object o)
      int hashCode()
      String toString()
      static Moderation flagged(String flaggedText) Constructs a Moderation object that is flagged.
      static Moderation notFlagged() Constructs a Moderation object that is not flagged.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Moderation

        Moderation()
        Construct a Moderation object that is not flagged.
      • Moderation

        Moderation(String flaggedText)
        Construct a Moderation object that is flagged.
        Parameters:
        flaggedText - the text that was flagged.
    • Method Detail

      • flagged

         boolean flagged()

        Returns true if the text was flagged.

        Returns:

        true if the text was flagged, false otherwise.

      • flaggedText

         String flaggedText()

        Returns the text that was flagged.

        Returns:

        the text that was flagged, or null if the text was not flagged.

      • flagged

         static Moderation flagged(String flaggedText)

        Constructs a Moderation object that is flagged.

        Parameters:
        flaggedText - the text that was flagged.
        Returns:

        a Moderation object.

      • notFlagged

         static Moderation notFlagged()

        Constructs a Moderation object that is not flagged.

        Returns:

        a Moderation object.