public class ThumbnailArg
extends java.lang.Object
| Modifier and Type | Class and Description | 
|---|---|
| static class  | ThumbnailArg.BuilderBuilder for  ThumbnailArg. | 
| Modifier and Type | Field and Description | 
|---|---|
| protected ThumbnailFormat | format | 
| protected ThumbnailMode | mode | 
| protected java.lang.String | path | 
| protected ThumbnailSize | size | 
| Constructor and Description | 
|---|
| ThumbnailArg(java.lang.String path)None | 
| ThumbnailArg(java.lang.String path,
            ThumbnailFormat format,
            ThumbnailSize size,
            ThumbnailMode mode)Use  newBuilderto create instances of this class without
 specifying values for all optional fields. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | equals(java.lang.Object obj) | 
| ThumbnailFormat | getFormat()The format for the thumbnail image, jpeg (default) or png. | 
| ThumbnailMode | getMode()How to resize and crop the image to achieve the desired size. | 
| java.lang.String | getPath()The path to the image file you want to thumbnail. | 
| ThumbnailSize | getSize()The size for the thumbnail image. | 
| int | hashCode() | 
| static ThumbnailArg.Builder | newBuilder(java.lang.String path)Returns a new builder for creating an instance of this class. | 
| java.lang.String | toString() | 
| java.lang.String | toStringMultiline()Returns a String representation of this object formatted for easier
 readability. | 
protected final java.lang.String path
protected final ThumbnailFormat format
protected final ThumbnailSize size
protected final ThumbnailMode mode
public ThumbnailArg(java.lang.String path,
                    ThumbnailFormat format,
                    ThumbnailSize size,
                    ThumbnailMode mode)
newBuilder to create instances of this class without
 specifying values for all optional fields.path - The path to the image file you want to thumbnail. Must match
     pattern "(/(.|[\\r\\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)" and not
     be null.format - The format for the thumbnail image, jpeg (default) or png.
     For  images that are photos, jpeg should be preferred, while png is
     better for screenshots and digital arts. Must not be null.size - The size for the thumbnail image. Must not be null.mode - How to resize and crop the image to achieve the desired
     size. Must not be null.java.lang.IllegalArgumentException - If any argument does not meet its
     preconditions.public ThumbnailArg(java.lang.String path)
The default values for unset fields will be used.
path - The path to the image file you want to thumbnail. Must match
     pattern "(/(.|[\\r\\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)" and not
     be null.java.lang.IllegalArgumentException - If any argument does not meet its
     preconditions.public java.lang.String getPath()
null.public ThumbnailFormat getFormat()
null if not present. Defaults to
     ThumbnailFormat.JPEG.public ThumbnailSize getSize()
null if not present. Defaults to
     ThumbnailSize.W64H64.public ThumbnailMode getMode()
null if not present. Defaults to
     ThumbnailMode.STRICT.public static ThumbnailArg.Builder newBuilder(java.lang.String path)
path - The path to the image file you want to thumbnail. Must match
     pattern "(/(.|[\\r\\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)" and not
     be null.java.lang.IllegalArgumentException - If any argument does not meet its
     preconditions.public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toStringMultiline()
The returned String may contain newlines.