Index

B C D E F G I K O P R S T W Y 
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
Common helpers.

Repository: GitHub: ngoanh2n/commons Maven: com.github.ngoanh2n:commons
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 by value.
decW(int) - Method in class com.github.ngoanh2n.Dimension
Decrease width for this Dimension by value.
decX(int) - Method in class com.github.ngoanh2n.Point
Decrease X coordinate for this Point by value.
decY(int) - Method in class com.github.ngoanh2n.Point
Decrease Y coordinate for this Point by value.
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
Construct a new Dimension by w, h.
Dimension(Dimension) - Constructor for class com.github.ngoanh2n.Dimension
Construct a new Dimension by other 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 other Dimension.
equals(Point) - Method in class com.github.ngoanh2n.Point
Check whether the current Point equals to other Point.

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
Utils for image process.

GitHub: ngoanh2n/commons Maven: com.github.ngoanh2n:commons
ImageUtils() - Constructor for class com.github.ngoanh2n.ImageUtils
 
incH(int) - Method in class com.github.ngoanh2n.Dimension
Increase height for this Dimension by value.
incW(int) - Method in class com.github.ngoanh2n.Dimension
Increase width for this Dimension by value.
incX(int) - Method in class com.github.ngoanh2n.Point
Increase X coordinate for this Point by value.
incY(int) - Method in class com.github.ngoanh2n.Point
Increase Y coordinate for this Point by value.
isOrigin() - Method in class com.github.ngoanh2n.Point
Check whether the current Point at 0: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
Construct a new Property of Boolean.
ofBoolean(String, Boolean) - Static method in class com.github.ngoanh2n.Property
Construct a new Property of Boolean.
ofDouble(String) - Static method in class com.github.ngoanh2n.Property
Construct a new Property of Double.
ofDouble(String, double) - Static method in class com.github.ngoanh2n.Property
Construct a new Property of Double.
ofFloat(String) - Static method in class com.github.ngoanh2n.Property
Construct a new Property of Float.
ofFloat(String, float) - Static method in class com.github.ngoanh2n.Property
Construct a new Property of Float.
ofInteger(String) - Static method in class com.github.ngoanh2n.Property
Construct a new Property of Integer.
ofInteger(String, int) - Static method in class com.github.ngoanh2n.Property
Construct a new Property of Integer.
ofLong(String) - Static method in class com.github.ngoanh2n.Property
Construct a new Property of Long.
ofLong(String, long) - Static method in class com.github.ngoanh2n.Property
Construct a new Property of Long.
ofString(String) - Static method in class com.github.ngoanh2n.Property
Construct a new Property of String.
ofString(String, String) - Static method in class com.github.ngoanh2n.Property
Construct a new Property of String.

P

Point - Class in com.github.ngoanh2n
A copy of java.awt.Point.

Repository: GitHub: ngoanh2n/commons Maven: com.github.ngoanh2n:commons
Point() - Constructor for class com.github.ngoanh2n.Point
Construct a new Point at 0:0 of the coordinate.
Point(int, int) - Constructor for class com.github.ngoanh2n.Point
Construct a new Point by x:y of the coordinate.
Point(Point) - Constructor for class com.github.ngoanh2n.Point
Construct a new Point by other Point.
PropertiesFile - Class in com.github.ngoanh2n
Read properties file.

Repository: GitHub: ngoanh2n/commons Maven: com.github.ngoanh2n:commons
PropertiesFile(File) - Constructor for class com.github.ngoanh2n.PropertiesFile
Construct a new PropertiesFile by a File.
PropertiesFile(File, boolean) - Constructor for class com.github.ngoanh2n.PropertiesFile
Construct a new PropertiesFile by a File.
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
Construct a new Rectangle by location x:y and size w,h.
Rectangle(Dimension) - Constructor for class com.github.ngoanh2n.Rectangle
Construct a new Rectangle by location 0:0 and size d.
Rectangle(Point, Dimension) - Constructor for class com.github.ngoanh2n.Rectangle
Construct a new Rectangle by location p and size d.
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
Sorted Java Properties.

Repository: GitHub: ngoanh2n/commons Maven: com.github.ngoanh2n:commons
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
Read Yaml file as List of Map.
toMapsFromFile(String, Charset) - Static method in class com.github.ngoanh2n.YamlData
Read Yaml file as List of Map.
toMapsFromResource(String) - Static method in class com.github.ngoanh2n.YamlData
Read Yaml file as List of Map.
toMapsFromResource(String, Charset) - Static method in class com.github.ngoanh2n.YamlData
Read Yaml file as List of Map.
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
Read Yaml file as List of YamlData.
toModels(Charset) - Method in class com.github.ngoanh2n.YamlData
Read Yaml file as List of 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 to Map, 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 extends YamlData class.

Repository: GitHub: ngoanh2n/commons Maven: com.github.ngoanh2n:commons
B C D E F G I K O P R S T W Y 
All Classes and Interfaces|All Packages|Serialized Form