Skip to content

Commit 23602f3

Browse files
authored
Merge pull request #5 from javaquery/v1.0.5
feat: change list is as follow
2 parents 0fe1217 + 211c6d5 commit 23602f3

32 files changed

+2404
-2241
lines changed

CODE_OF_CONDUCT.md

Lines changed: 25 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,14 @@
22

33
## Our Pledge
44

5-
In the interest of fostering an open and welcoming environment, we as
6-
contributors and maintainers pledge to making participation in our project and
7-
our community a harassment-free experience for everyone, regardless of age, body
8-
size, disability, ethnicity, sex characteristics, gender identity and expression,
9-
level of experience, education, socio-economic status, nationality, personal
10-
appearance, race, religion, or sexual identity and orientation.
5+
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making
6+
participation in our project and our community a harassment-free experience for everyone, regardless of age, body size,
7+
disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education,
8+
socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
119

1210
## Our Standards
1311

14-
Examples of behavior that contributes to creating a positive environment
15-
include:
12+
Examples of behavior that contributes to creating a positive environment include:
1613

1714
* Using welcoming and inclusive language
1815
* Being respectful of differing viewpoints and experiences
@@ -22,53 +19,42 @@ include:
2219

2320
Examples of unacceptable behavior by participants include:
2421

25-
* The use of sexualized language or imagery and unwelcome sexual attention or
26-
advances
22+
* The use of sexualized language or imagery and unwelcome sexual attention or advances
2723
* Trolling, insulting/derogatory comments, and personal or political attacks
2824
* Public or private harassment
29-
* Publishing others' private information, such as a physical or electronic
30-
address, without explicit permission
31-
* Other conduct which could reasonably be considered inappropriate in a
32-
professional setting
25+
* Publishing others' private information, such as a physical or electronic address, without explicit permission
26+
* Other conduct which could reasonably be considered inappropriate in a professional setting
3327

3428
## Our Responsibilities
3529

36-
Project maintainers are responsible for clarifying the standards of acceptable
37-
behavior and are expected to take appropriate and fair corrective action in
38-
response to any instances of unacceptable behavior.
30+
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take
31+
appropriate and fair corrective action in response to any instances of unacceptable behavior.
3932

40-
Project maintainers have the right and responsibility to remove, edit, or
41-
reject comments, commits, code, wiki edits, issues, and other contributions
42-
that are not aligned to this Code of Conduct, or to ban temporarily or
43-
permanently any contributor for other behaviors that they deem inappropriate,
44-
threatening, offensive, or harmful.
33+
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits,
34+
issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any
35+
contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
4536

4637
## Scope
4738

48-
This Code of Conduct applies both within project spaces and in public spaces
49-
when an individual is representing the project or its community. Examples of
50-
representing a project or community include using an official project e-mail
51-
address, posting via an official social media account, or acting as an appointed
52-
representative at an online or offline event. Representation of a project may be
53-
further defined and clarified by project maintainers.
39+
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the
40+
project or its community. Examples of representing a project or community include using an official project e-mail
41+
address, posting via an official social media account, or acting as an appointed representative at an online or offline
42+
event. Representation of a project may be further defined and clarified by project maintainers.
5443

5544
## Enforcement
5645

57-
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58-
reported by contacting the project team at vicky.thakor@javaquery.com. All
59-
complaints will be reviewed and investigated and will result in a response that
60-
is deemed necessary and appropriate to the circumstances. The project team is
61-
obligated to maintain confidentiality with regard to the reporter of an incident.
62-
Further details of specific enforcement policies may be posted separately.
46+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at
47+
vicky.thakor@javaquery.com. All complaints will be reviewed and investigated and will result in a response that is
48+
deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with
49+
regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
6350

64-
Project maintainers who do not follow or enforce the Code of Conduct in good
65-
faith may face temporary or permanent repercussions as determined by other
66-
members of the project's leadership.
51+
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent
52+
repercussions as determined by other members of the project's leadership.
6753

6854
## Attribution
6955

70-
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71-
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
56+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available
57+
at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
7258

7359
[homepage]: https://www.contributor-covenant.org
7460

README.md

Lines changed: 36 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,56 @@
11
# JavaQuery Util Library
2+
23
Welcome to the JavaQuery util library
34

45
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.javaquery/util/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.javaquery/util)
56

67
# Overview
7-
Goal is to remove repeated boler plate utility code from your project. This library offers util classes of following framework and objects.
8-
9-
- <b>Collections</b>: Provides wide range of operation you perform on collection (List, Set and Map) interfaces like <code>nullOrEmpty(Collection)</code>, <code>nonNullNonEmpty(Collection)</code>, <code>batches(List<T> source, int batchSize)</code>, etc...
10-
- <b>Files</b>: Provides wide range of operation you perform on <code>java.io.File</code> like <code>createNewFile(T file)</code>, <code>writeToFile(T file, String data)</code>, <code>appendToFile(T file, String data, boolean appendNewLine)</code>, etc...
11-
- <b>Console</b>: Provides replacement of <code>System.out.println()</code> using .log() and <code>System.err.println()</code> using error().
12-
- <b>JFile</b>: Extends <code>java.io.File</code> and provide some extra function on file like <code>getExtension</code>, <code>read</code>, <code>write</code>.
13-
- <b>JSONObject</b>: Uses <code>org.json.JSONObject</code> and provides facility to optValue at any path in JSONObject, like <code>items.item[0].batters.batter[2].available</code>
14-
- <b>Strings</b>: Provides wide range of operation you perform on <code>java.lang.String</code> like <code>nullOrEmpty(String str)</code>, <code>joinStrings(String separator, String... strings)</code>, <code>removeNotSupportedASCIICharacters(String str)</code>, etc...
15-
- <b>DatePattern</b>: Provides wide range of Date patterns commonly used worldwide like <code>yyyyMMddHHmmss</code>, <code>yyyy-MM-dd HH:mm:ss'Z'</code>, <code>yyyy-MM-dd'T'HH:mm:ss.SSSSSSS-HH:MM</code>, etc...
8+
9+
Goal is to remove repeated boler plate utility code from your project. This library offers util classes of following
10+
framework and objects.
11+
12+
- <b>Collections</b>: Provides wide range of operation you perform on collection (List, Set and Map) interfaces
13+
like <code>nullOrEmpty(Collection)</code>, <code>nonNullNonEmpty(Collection)</code>, <code>batches(List<T> source, int
14+
batchSize)</code>, etc...
15+
- <b>Files</b>: Provides wide range of operation you perform on <code>java.io.File</code> like <code>createNewFile(T
16+
file)</code>, <code>writeToFile(T file, String data)</code>, <code>appendToFile(T file, String data, boolean
17+
appendNewLine)</code>, etc...
18+
- <b>Console</b>: Provides replacement of <code>System.out.println()</code> using .log() and <code>
19+
System.err.println()</code> using error().
20+
- <b>JFile</b>: Extends <code>java.io.File</code> and provide some extra function on file like <code>getExtension</code>
21+
, <code>read</code>, <code>write</code>.
22+
- <b>JSONObject</b>: Uses <code>org.json.JSONObject</code> and provides facility to optValue at any path in JSONObject,
23+
like <code>items.item[0].batters.batter[2].available</code>
24+
- <b>Strings</b>: Provides wide range of operation you perform on <code>java.lang.String</code> like <code>nullOrEmpty(
25+
String str)</code>, <code>joinStrings(String separator, String... strings)</code>, <code>
26+
removeNotSupportedASCIICharacters(String str)</code>, etc...
27+
- <b>DatePattern</b>: Provides wide range of Date patterns commonly used worldwide like <code>yyyyMMddHHmmss</code>
28+
, <code>yyyy-MM-dd HH:mm:ss'Z'</code>, <code>yyyy-MM-dd'T'HH:mm:ss.SSSSSSS-HH:MM</code>, etc...
1629
- <b>DateRange</b>: Class can be used to store start-date and end-date.
17-
- <b>Dates</b>: Provides wide range of operation you perform on <code>java.util.Date</code> like <code>addInDate(Date date, int type, int amount)</code>, <code>parse(String date, DatePattern datePattern, TimeZone timeZone)</code>, <code>format(Date date, DatePattern datePattern, TimeZone timeZone)</code>, etc...
18-
- <b>Assert</b>: Provides wide range of operation for Assertions like <code>nonNull(Object object, Supplier<T> exceptionSupplier)</code>, <code>isTrue(boolean expression, Supplier<T> exceptionSupplier)</code>, <code>nonNullNonEmpty(Collection<?> collection, Supplier<T> exceptionSupplier)</code>, etc...
19-
- <b>Objects</b>: Provides wide range of operation on <code>java.lang.Object</code> like <code>isNull(Object obj)</code>, <code>nonNull(Object obj)</code>.
20-
- <b>Regex</b>: Provides wide range of operation using regular expression like <code>isNumber(String value)</code>, <code>isAlphaNumeric(String value)</code>, <code>isValidEmail(String value)</code>.
30+
- <b>Dates</b>: Provides wide range of operation you perform on <code>java.util.Date</code> like <code>addInDate(Date
31+
date, int type, int amount)</code>, <code>parse(String date, DatePattern datePattern, TimeZone timeZone)</code>
32+
, <code>format(Date date, DatePattern datePattern, TimeZone timeZone)</code>, etc...
33+
- <b>Assert</b>: Provides wide range of operation for Assertions like <code>nonNull(Object object, Supplier<T>
34+
exceptionSupplier)</code>, <code>isTrue(boolean expression, Supplier<T> exceptionSupplier)</code>, <code>
35+
nonNullNonEmpty(Collection<?> collection, Supplier<T> exceptionSupplier)</code>, etc...
36+
- <b>Objects</b>: Provides wide range of operation on <code>java.lang.Object</code> like <code>isNull(Object obj)</code>
37+
, <code>nonNull(Object obj)</code>.
38+
- <b>Regex</b>: Provides wide range of operation using regular expression like <code>isNumber(String value)</code>
39+
, <code>isAlphaNumeric(String value)</code>, <code>isValidEmail(String value)</code>.
2140
- <b>UniqueIdGenerator</b>: Generate unique time based random alphanumeric string like Firebase keys.
2241

2342
# Maven
43+
2444
```
2545
<dependency>
2646
<groupId>com.javaquery</groupId>
2747
<artifactId>util</artifactId>
28-
<version>1.0.4</version>
48+
<version>1.0.5</version>
2949
</dependency>
3050
```
3151

3252
# Gradle
53+
3354
```
34-
implementation 'com.javaquery:util:1.0.4'
55+
implementation 'com.javaquery:util:1.0.5'
3556
```

build.gradle

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ plugins {
55
}
66

77
group 'com.javaquery'
8-
version '1.0.4'
8+
version '1.0.5'
99

1010
repositories {
1111
mavenCentral()
@@ -27,6 +27,17 @@ java {
2727
withSourcesJar()
2828
}
2929

30+
jar {
31+
manifest {
32+
attributes(
33+
'Built-By': "Vicky Thakor",
34+
'Created-By': "Gradle ${gradle.gradleVersion}",
35+
'Build-Jdk': "${System.properties['java.version']} (${System.properties['java.vendor']} ${System.properties['java.vm.version']})",
36+
'Import-Package': "org.json,org.slf4j,*"
37+
)
38+
}
39+
}
40+
3041
publishing {
3142
publications {
3243
mavenJava(MavenPublication) {

settings.xml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
2-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd">
4-
<servers>
5-
<server>
6-
<id>ossrh</id>
7-
<username>${env.MAVEN_USERNAME}</username>
8-
<password>${env.MAVEN_CENTRAL_TOKEN}</password>
9-
</server>
10-
<server>
11-
<id>gpg.passphrase</id>
12-
<passphrase>${env.MAVEN_GPG_PASSPHRASE}</passphrase>
13-
</server>
14-
</servers>
1+
<settings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2+
xmlns="http://maven.apache.org/SETTINGS/1.0.0"
3+
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd">
4+
<servers>
5+
<server>
6+
<id>ossrh</id>
7+
<username>${env.MAVEN_USERNAME}</username>
8+
<password>${env.MAVEN_CENTRAL_TOKEN}</password>
9+
</server>
10+
<server>
11+
<id>gpg.passphrase</id>
12+
<passphrase>${env.MAVEN_GPG_PASSPHRASE}</passphrase>
13+
</server>
14+
</servers>
1515
</settings>

0 commit comments

Comments
 (0)