Class BytesRange

java.lang.Object
video.api.client.api.models.BytesRange
All Implemented Interfaces:
java.io.Serializable

public class BytesRange
extends java.lang.Object
implements java.io.Serializable
BytesRange
See Also:
Serialized Form
  • Field Summary

    Fields
    Modifier and Type Field Description
    static java.lang.String SERIALIZED_NAME_FROM  
    static java.lang.String SERIALIZED_NAME_TO  
    static java.lang.String SERIALIZED_NAME_TOTAL  
  • Constructor Summary

    Constructors
    Constructor Description
    BytesRange()  
  • Method Summary

    Modifier and Type Method Description
    boolean equals​(java.lang.Object o)  
    BytesRange from​(java.lang.Integer from)  
    java.lang.Integer getFrom()
    The starting point for the range of bytes for a chunk of a video.
    java.lang.Integer getTo()
    The ending point for the range of bytes for a chunk of a video.
    java.lang.Integer getTotal()
    The total number of bytes in the provided range.
    int hashCode()  
    void setFrom​(java.lang.Integer from)  
    void setTo​(java.lang.Integer to)  
    void setTotal​(java.lang.Integer total)  
    BytesRange to​(java.lang.Integer to)  
    java.lang.String toString()  
    BytesRange total​(java.lang.Integer total)  

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • SERIALIZED_NAME_FROM

      public static final java.lang.String SERIALIZED_NAME_FROM
      See Also:
      Constant Field Values
    • SERIALIZED_NAME_TO

      public static final java.lang.String SERIALIZED_NAME_TO
      See Also:
      Constant Field Values
    • SERIALIZED_NAME_TOTAL

      public static final java.lang.String SERIALIZED_NAME_TOTAL
      See Also:
      Constant Field Values
  • Constructor Details

    • BytesRange

      public BytesRange()
  • Method Details

    • from

      public BytesRange from​(java.lang.Integer from)
    • getFrom

      @Nullable public java.lang.Integer getFrom()
      The starting point for the range of bytes for a chunk of a video.
      Returns:
      from
    • setFrom

      public void setFrom​(java.lang.Integer from)
    • to

      public BytesRange to​(java.lang.Integer to)
    • getTo

      @Nullable public java.lang.Integer getTo()
      The ending point for the range of bytes for a chunk of a video.
      Returns:
      to
    • setTo

      public void setTo​(java.lang.Integer to)
    • total

      public BytesRange total​(java.lang.Integer total)
    • getTotal

      @Nullable public java.lang.Integer getTotal()
      The total number of bytes in the provided range.
      Returns:
      total
    • setTotal

      public void setTotal​(java.lang.Integer total)
    • equals

      public boolean equals​(java.lang.Object o)
      Overrides:
      equals in class java.lang.Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object