java.lang.Object
org.omnifaces.resourcehandler.WebAppManifest.Size
- Enclosing class:
- WebAppManifest
To be used in
WebAppManifest.ImageResource.getSizes().-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final WebAppManifest.Size120x120static final WebAppManifest.Size128x128static final WebAppManifest.Size144x144static final WebAppManifest.Size152x152static final WebAppManifest.Size16x16static final WebAppManifest.Size168x168static final WebAppManifest.Size180x180static final WebAppManifest.Size192x192static final WebAppManifest.Size256x256static final WebAppManifest.Size32x32static final WebAppManifest.Size384x384static final WebAppManifest.Size48x48static final WebAppManifest.Size512x512static final WebAppManifest.Size64x64static final WebAppManifest.Size72x72static final WebAppManifest.Size96x96 -
Method Summary
Modifier and TypeMethodDescriptionbooleangetValue()Returns the value of this size.inthashCode()static WebAppManifest.Sizeof(int value) Creates a size having same width and height of given value.static WebAppManifest.Sizeof(int width, int height) Creates a size of given width and height.
-
Field Details
-
SIZE_16
16x16 -
SIZE_32
32x32 -
SIZE_48
48x48 -
SIZE_64
64x64 -
SIZE_72
72x72 -
SIZE_96
96x96 -
SIZE_120
120x120 -
SIZE_128
128x128 -
SIZE_144
144x144 -
SIZE_152
152x152 -
SIZE_168
168x168 -
SIZE_180
180x180 -
SIZE_192
192x192 -
SIZE_256
256x256 -
SIZE_384
384x384 -
SIZE_512
512x512
-
-
Method Details
-
of
Creates a size having same width and height of given value.- Parameters:
value- The value.- Returns:
- A size having same width and height of given value.
- Throws:
IllegalArgumentException- When value is 0 or less.
-
of
Creates a size of given width and height.- Parameters:
width- The width.height- The height.- Returns:
- A size of given width and height.
- Throws:
IllegalArgumentException- When width or height is 0 or less.
-
getValue
Returns the value of this size.- Returns:
- The value of this size.
-
equals
-
hashCode
public int hashCode()
-