Index
All Classes and Interfaces|All Packages|Serialized Form
B
- buildEnum(Class<T>, String) - Static method in class com.github.ngoanh2n.Commons
-
Build enum from enum class and enum constant name.
C
- clearValue() - Method in class com.github.ngoanh2n.Property
-
Remove the JVM system property indicated by the specified key.
- com.github.ngoanh2n - package com.github.ngoanh2n
- Commons - Class in com.github.ngoanh2n
- convertValue(Class<T>, String) - Static method in class com.github.ngoanh2n.Commons
-
Convert String value to a specific object.
- create(Dimension) - Static method in class com.github.ngoanh2n.ImageUtils
-
Create a new
BufferedImage
. - create(BufferedImage) - Static method in class com.github.ngoanh2n.ImageUtils
-
Create a new
BufferedImage
. - create(BufferedImage, Dimension) - Static method in class com.github.ngoanh2n.ImageUtils
-
Create a new
BufferedImage
. - createDir(File) - Static method in class com.github.ngoanh2n.Commons
-
Create recursively directory from
File
. - createDir(Path) - Static method in class com.github.ngoanh2n.Commons
-
Create recursively directory from
Path
. - crop(BufferedImage, Rectangle) - Static method in class com.github.ngoanh2n.ImageUtils
-
Crop a new sub image from source image by a rectangle.
D
- decH(int) - Method in class com.github.ngoanh2n.Dimension
-
Decrease height for this
Dimension
byvalue
. - decW(int) - Method in class com.github.ngoanh2n.Dimension
-
Decrease width for this
Dimension
byvalue
. - decX(int) - Method in class com.github.ngoanh2n.Point
-
Decrease X coordinate for this
Point
byvalue
. - decY(int) - Method in class com.github.ngoanh2n.Point
-
Decrease Y coordinate for this
Point
byvalue
. - detectCharset(File) - Static method in class com.github.ngoanh2n.Commons
-
Get the charset of a file.
- Dimension - Class in com.github.ngoanh2n
-
A copy of java.awt.Dimension.
Repository: GitHub: ngoanh2n/commons Maven: com.github.ngoanh2n:commons - Dimension(int, int) - Constructor for class com.github.ngoanh2n.Dimension
- Dimension(Dimension) - Constructor for class com.github.ngoanh2n.Dimension
- drawArea(BufferedImage, BufferedImage, Point) - Static method in class com.github.ngoanh2n.ImageUtils
-
Draw a sub image over source image at specific location.
E
- entrySet() - Method in class com.github.ngoanh2n.SortedProperties
- equals(Dimension) - Method in class com.github.ngoanh2n.Dimension
-
Check whether the current
Dimension
equals to otherDimension
. - equals(Point) - Method in class com.github.ngoanh2n.Point
-
Check whether the current
Point
equals to otherPoint
.
F
- file() - Element in annotation interface com.github.ngoanh2n.YamlFrom
-
The path name of Yaml file.
- fill(BufferedImage, Color) - Static method in class com.github.ngoanh2n.ImageUtils
-
Fill color over image.
- fromFile(String) - Method in class com.github.ngoanh2n.YamlData
-
Set the path name of Yaml file.
- fromResource(String) - Method in class com.github.ngoanh2n.YamlData
-
Set resource name to get the Yaml file.
G
- getContent(String) - Static method in class com.github.ngoanh2n.Resources
-
Get the resource file as
String
. - getContent(String, Charset) - Static method in class com.github.ngoanh2n.Resources
-
Get the resource file as
String
. - getDefaultValue() - Method in class com.github.ngoanh2n.Property
-
Get the default value of the JVM system property.
- getFile(String) - Static method in class com.github.ngoanh2n.Resources
-
Get the resource file.
- getHeight() - Method in class com.github.ngoanh2n.Dimension
-
Get height of this
Dimension
. - getHeight() - Method in class com.github.ngoanh2n.Rectangle
-
Get height of this
Rectangle
. - getInputStream(String) - Static method in class com.github.ngoanh2n.Resources
-
Get the resource file as
InputStream
. - getLocation() - Method in class com.github.ngoanh2n.Rectangle
-
Get location of this
Rectangle
. - getName() - Method in class com.github.ngoanh2n.Property
-
Get the name of the JVM system property.
- getPath(String) - Static method in class com.github.ngoanh2n.Resources
-
Get the path of resource.
- getProperties() - Method in class com.github.ngoanh2n.PropertiesFile
-
Get all properties in this file.
- getProperty(Property<T>) - Method in class com.github.ngoanh2n.PropertiesFile
-
Get the value of property by other property.
Priority order: JVM System Property, Properties file, Default value. - getProperty(String) - Method in class com.github.ngoanh2n.PropertiesFile
-
Get the value of property by name.
Priority order: JVM System Property, Properties file. - getRelative(File) - Static method in class com.github.ngoanh2n.Commons
-
Get relative path of file against to current user directory.
- getRelative(Path) - Static method in class com.github.ngoanh2n.Commons
-
Get relative path of path against to current user directory.
- getSize() - Method in class com.github.ngoanh2n.Rectangle
-
Get size of this
Rectangle
. - getType() - Method in class com.github.ngoanh2n.Property
-
Get the class type of the JVM system property.
- getValue() - Method in class com.github.ngoanh2n.Property
-
Get the value of the JVM system property.
- getWidth() - Method in class com.github.ngoanh2n.Dimension
-
Get width of this
Dimension
. - getWidth() - Method in class com.github.ngoanh2n.Rectangle
-
Get width of this
Rectangle
. - getX() - Method in class com.github.ngoanh2n.Point
-
Get the X coordinate of this
Point
. - getX() - Method in class com.github.ngoanh2n.Rectangle
-
Get the X coordinate of this
Rectangle
. - getY() - Method in class com.github.ngoanh2n.Point
-
Get the Y coordinate of this
Point
. - getY() - Method in class com.github.ngoanh2n.Rectangle
-
Get the Y coordinate of this
Rectangle
.
I
- ImageUtils - Class in com.github.ngoanh2n
- ImageUtils() - Constructor for class com.github.ngoanh2n.ImageUtils
- incH(int) - Method in class com.github.ngoanh2n.Dimension
-
Increase height for this
Dimension
byvalue
. - incW(int) - Method in class com.github.ngoanh2n.Dimension
-
Increase width for this
Dimension
byvalue
. - incX(int) - Method in class com.github.ngoanh2n.Point
-
Increase X coordinate for this
Point
byvalue
. - incY(int) - Method in class com.github.ngoanh2n.Point
-
Increase Y coordinate for this
Point
byvalue
. - isOrigin() - Method in class com.github.ngoanh2n.Point
-
Check whether the current
Point
at0:0
of the coordinate. - isReassigned() - Method in class com.github.ngoanh2n.Property
-
Whether property value was reassigned via
Property.setValue(newValue)
.
K
- keys() - Method in class com.github.ngoanh2n.SortedProperties
- keySet() - Method in class com.github.ngoanh2n.SortedProperties
O
- ofBoolean(String) - Static method in class com.github.ngoanh2n.Property
- ofBoolean(String, Boolean) - Static method in class com.github.ngoanh2n.Property
- ofDouble(String) - Static method in class com.github.ngoanh2n.Property
- ofDouble(String, double) - Static method in class com.github.ngoanh2n.Property
- ofFloat(String) - Static method in class com.github.ngoanh2n.Property
- ofFloat(String, float) - Static method in class com.github.ngoanh2n.Property
- ofInteger(String) - Static method in class com.github.ngoanh2n.Property
- ofInteger(String, int) - Static method in class com.github.ngoanh2n.Property
- ofLong(String) - Static method in class com.github.ngoanh2n.Property
- ofLong(String, long) - Static method in class com.github.ngoanh2n.Property
- ofString(String) - Static method in class com.github.ngoanh2n.Property
- ofString(String, String) - Static method in class com.github.ngoanh2n.Property
P
- Point - Class in com.github.ngoanh2n
- Point() - Constructor for class com.github.ngoanh2n.Point
-
Construct a new
Point
at0:0
of the coordinate. - Point(int, int) - Constructor for class com.github.ngoanh2n.Point
-
Construct a new
Point
byx:y
of the coordinate. - Point(Point) - Constructor for class com.github.ngoanh2n.Point
- PropertiesFile - Class in com.github.ngoanh2n
- PropertiesFile(File) - Constructor for class com.github.ngoanh2n.PropertiesFile
-
Construct a new
PropertiesFile
by aFile
. - PropertiesFile(File, boolean) - Constructor for class com.github.ngoanh2n.PropertiesFile
-
Construct a new
PropertiesFile
by aFile
. - PropertiesFile(String) - Constructor for class com.github.ngoanh2n.PropertiesFile
-
Construct a new
PropertiesFile
by a resource name. - PropertiesFile(String, boolean) - Constructor for class com.github.ngoanh2n.PropertiesFile
-
Construct a new
PropertiesFile
by a resource name. - Property<T> - Class in com.github.ngoanh2n
-
Represent a JVM system property.
Repository: GitHub: ngoanh2n/commons Maven: com.github.ngoanh2n:commons - Property(String, Class<T>) - Constructor for class com.github.ngoanh2n.Property
-
Construct a new
Property
. - Property(String, Class<T>, T) - Constructor for class com.github.ngoanh2n.Property
-
Construct a new
Property
.
R
- readField(Class<?>, String) - Static method in class com.github.ngoanh2n.Commons
-
Read value of the
Field
. - readField(Object, String) - Static method in class com.github.ngoanh2n.Commons
-
Read value of the
Field
. - readProps(File, String) - Static method in class com.github.ngoanh2n.Commons
-
Read
Properties
from given properties file. - readProps(String) - Static method in class com.github.ngoanh2n.Commons
-
Read
Properties
from given Java resource name. - Rectangle - Class in com.github.ngoanh2n
-
A copy of java.awt.Rectangle.
Repository: GitHub: ngoanh2n/commons Maven: com.github.ngoanh2n:commons - Rectangle(int, int, int, int) - Constructor for class com.github.ngoanh2n.Rectangle
- Rectangle(Dimension) - Constructor for class com.github.ngoanh2n.Rectangle
- Rectangle(Point, Dimension) - Constructor for class com.github.ngoanh2n.Rectangle
- resource() - Element in annotation interface com.github.ngoanh2n.YamlFrom
-
The resource name to get the Yaml file.
- Resources - Class in com.github.ngoanh2n
-
Find and read Java resources.
- RuntimeError - Exception in com.github.ngoanh2n
-
Base runtime exception for
com.github.ngoanh2n
.
Repository: GitHub: ngoanh2n/commons Maven: com.github.ngoanh2n:commons - RuntimeError(String) - Constructor for exception com.github.ngoanh2n.RuntimeError
-
Construct a new runtime exception with the specified detail message.
- RuntimeError(String, Throwable) - Constructor for exception com.github.ngoanh2n.RuntimeError
-
Construct a new runtime exception with the specified detail message and cause.
- RuntimeError(Throwable) - Constructor for exception com.github.ngoanh2n.RuntimeError
-
Construct a new runtime exception with the specified cause and a detail message.
S
- save(BufferedImage, File) - Static method in class com.github.ngoanh2n.ImageUtils
-
Save image to output.
- setHeight(int) - Method in class com.github.ngoanh2n.Dimension
-
Set height for this
Dimension
. - setLocation(Point) - Method in class com.github.ngoanh2n.Rectangle
-
Set value for this
Rectangle
. - setSize(Dimension) - Method in class com.github.ngoanh2n.Rectangle
-
Set size for this
Rectangle
. - setValue(T) - Method in class com.github.ngoanh2n.Property
-
Set the JVM system property indicated by the specified key.
- setWidth(int) - Method in class com.github.ngoanh2n.Dimension
-
Set width for this
Dimension
. - setX(int) - Method in class com.github.ngoanh2n.Point
-
Set X coordinate for this
Point
. - setY(int) - Method in class com.github.ngoanh2n.Point
-
Set Y coordinate for this
Point
. - SortedProperties - Class in com.github.ngoanh2n
- SortedProperties() - Constructor for class com.github.ngoanh2n.SortedProperties
T
- timestamp() - Static method in class com.github.ngoanh2n.Commons
-
Create a timestamp.
- toMapFromFile(String) - Static method in class com.github.ngoanh2n.YamlData
-
Read Yaml file as
Map
. - toMapFromFile(String, Charset) - Static method in class com.github.ngoanh2n.YamlData
-
Read Yaml file as
Map
. - toMapFromResource(String) - Static method in class com.github.ngoanh2n.YamlData
-
Read Yaml file as
Map
. - toMapFromResource(String, Charset) - Static method in class com.github.ngoanh2n.YamlData
-
Read Yaml file as
Map
. - toMapsFromFile(String) - Static method in class com.github.ngoanh2n.YamlData
- toMapsFromFile(String, Charset) - Static method in class com.github.ngoanh2n.YamlData
- toMapsFromResource(String) - Static method in class com.github.ngoanh2n.YamlData
- toMapsFromResource(String, Charset) - Static method in class com.github.ngoanh2n.YamlData
- toModel() - Method in class com.github.ngoanh2n.YamlData
-
Read Yaml file as
YamlData
. - toModel(Charset) - Method in class com.github.ngoanh2n.YamlData
-
Read Yaml file as
YamlData
. - toModels() - Method in class com.github.ngoanh2n.YamlData
- toModels(Charset) - Method in class com.github.ngoanh2n.YamlData
- toString() - Method in class com.github.ngoanh2n.Dimension
-
Returns a string representation of this
Dimension
. - toString() - Method in class com.github.ngoanh2n.Point
-
Returns a string representation of this
Point
. - toString() - Method in class com.github.ngoanh2n.Rectangle
-
Returns a string representation of this
Rectangle
.
W
- writeField(Class<?>, String, Object) - Static method in class com.github.ngoanh2n.Commons
-
Write value to the field with modifiers: Target object has fields:
- writeField(Object, String, Object) - Static method in class com.github.ngoanh2n.Commons
-
Write value to the field with modifiers: Target object has fields:
- writeProps(Properties, File) - Static method in class com.github.ngoanh2n.Commons
-
Write
Properties
to file.
Y
- YamlData<Model> - Class in com.github.ngoanh2n
-
Read Yaml file.
Static
Read Yaml file toMap
,List of Maps
. - YamlData() - Constructor for class com.github.ngoanh2n.YamlData
-
Construct a new
YamlData
and get current Java Bean class. - YamlFrom - Annotation Interface in com.github.ngoanh2n
-
Provide a file or resource for
Model
that extendsYamlData
class.
Repository: GitHub: ngoanh2n/commons Maven: com.github.ngoanh2n:commons
All Classes and Interfaces|All Packages|Serialized Form