Class AfterToken


  • public class AfterToken
    extends java.lang.Object
    Represents an `after` token used for Set pagination.
    • Constructor Summary

      Constructors 
      Constructor Description
      AfterToken​(java.lang.String token)
      Constructs an AfterToken with the specified token.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.Optional<AfterToken> fromString​(java.lang.String token)
      Creates an AfterToken instance from the specified token string.
      java.lang.String getToken()
      Returns the token stored in this AfterToken instance.
      • Methods inherited from class java.lang.Object

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

      • AfterToken

        public AfterToken​(java.lang.String token)
        Constructs an AfterToken with the specified token.
        Parameters:
        token - the token to be stored in this AfterToken instance.
    • Method Detail

      • getToken

        public java.lang.String getToken()
        Returns the token stored in this AfterToken instance.
        Returns:
        the token as a String.
      • fromString

        public static java.util.Optional<AfterToken> fromString​(java.lang.String token)
        Creates an AfterToken instance from the specified token string. If the provided token is null, an empty Optional is returned.
        Parameters:
        token - the token string to convert into an AfterToken.
        Returns:
        an Optional containing an AfterToken if the token is non-null, or an empty Optional if it is null.