Compare commits
18 Commits
Author | SHA1 | Date | |
---|---|---|---|
5622138a01 | |||
6d94a2beff | |||
b4e495bdcf | |||
|
f056e61be8 | ||
|
31d8a35ff5 | ||
|
1edf648d5e | ||
|
cff2d808b0 | ||
|
67e7035219 | ||
|
f2e5771019 | ||
|
f52a6e3d99 | ||
|
a96c15cbaa | ||
|
8c8fd9b88d | ||
|
abeeb87cbf | ||
|
e5580d3f89 | ||
|
3321ba3981 | ||
|
d60c3db582 | ||
|
62ab3fb24f | ||
|
8c7305d98b |
6
CREDITS
6
CREDITS
@ -9,8 +9,8 @@
|
|||||||
----------
|
----------
|
||||||
|
|
||||||
N: Robert Vokac
|
N: Robert Vokac
|
||||||
E: robertvokac@nanoboot.org
|
E: robertvokac@robertvokac.com
|
||||||
W: https://nanoboot.org
|
W: https://robertvokac.com
|
||||||
P: 4096R/E3329055 322B D109 0AA8 C324 EA9C 72F5 693D 30BE E332 9055
|
P: 4096R/C459E1E4 255C 69CC 1D09 CA54 EF0C C9DF FB9C E8E2 0AAD A55F
|
||||||
D: Founder
|
D: Founder
|
||||||
S: Czech Republic
|
S: Czech Republic
|
||||||
|
115
Jenkinsfile
vendored
Normal file
115
Jenkinsfile
vendored
Normal file
@ -0,0 +1,115 @@
|
|||||||
|
pipeline
|
||||||
|
/*
|
||||||
|
Power Framework
|
||||||
|
|
||||||
|
Requirements:
|
||||||
|
|
||||||
|
Maven is Installed
|
||||||
|
|
||||||
|
Java 21 is installed - variable JAVA_21_HOME is set
|
||||||
|
|
||||||
|
*/
|
||||||
|
{
|
||||||
|
agent any
|
||||||
|
environment {
|
||||||
|
AAA = 'aaa'
|
||||||
|
}
|
||||||
|
stages
|
||||||
|
{
|
||||||
|
stage('Build')
|
||||||
|
{
|
||||||
|
steps {
|
||||||
|
|
||||||
|
echo "*** Building ${env.JOB_NAME} ***"
|
||||||
|
sh '''
|
||||||
|
#!/bin/bash
|
||||||
|
echo JOB_NAME=$JOB_NAME
|
||||||
|
|
||||||
|
if [ -z "$JAVA_21_HOME" ]
|
||||||
|
then
|
||||||
|
echo "KO : Variable JAVA_21_HOME is empty. You fix this issue by adding this variable to configuration of Jenkins."
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
echo "OK : Variable JAVA_21_HOME is NOT empty"
|
||||||
|
fi
|
||||||
|
export JAVA_HOME=$JAVA_21_HOME
|
||||||
|
case $BRANCH_NAME in
|
||||||
|
|
||||||
|
master | deploy_prod)
|
||||||
|
mvn clean install
|
||||||
|
;;
|
||||||
|
|
||||||
|
develop | jenkins | deploy_test)
|
||||||
|
echo Branch $BRANCH_NAME is supported. Continuing.
|
||||||
|
version=`mvn help:evaluate -Dexpression=project.version -q -DforceStdout`
|
||||||
|
echo version=$version
|
||||||
|
case "$version" in
|
||||||
|
*"SNAPSHOT"*) echo echo version is OK ;;
|
||||||
|
* ) echo echo "You cannot build releases on Jenkins, only snapshots!"&&exit 1 ;;
|
||||||
|
esac
|
||||||
|
mvn clean deploy
|
||||||
|
;;
|
||||||
|
|
||||||
|
*)
|
||||||
|
echo Branch $BRANCH_NAME is not supported. A failure happened. Exiting.
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
echo "Build of $JOB_NAME was successful"
|
||||||
|
'''
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
stage('Deploy')
|
||||||
|
{
|
||||||
|
steps {
|
||||||
|
echo "*** Deploying ${env.JOB_NAME} ***"
|
||||||
|
|
||||||
|
sh '''
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
echo "Nothing to do"
|
||||||
|
exit
|
||||||
|
|
||||||
|
case $BRANCH_NAME in
|
||||||
|
|
||||||
|
master | deploy_prod)
|
||||||
|
echo Branch $BRANCH_NAME is supported. Continuing.
|
||||||
|
TOMCAT_HOME=$TOMCAT10_HOME
|
||||||
|
systemdService=tomcat10
|
||||||
|
;;
|
||||||
|
|
||||||
|
develop | jenkins | deploy_test)
|
||||||
|
echo Branch $BRANCH_NAME is supported. Continuing.
|
||||||
|
TOMCAT_HOME=$TOMCAT10_TEST_HOME
|
||||||
|
systemdService=tomcat10test
|
||||||
|
;;
|
||||||
|
|
||||||
|
*)
|
||||||
|
echo Branch $BRANCH_NAME is not supported. A failure happened. Exiting.
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
'''
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
post {
|
||||||
|
always {
|
||||||
|
script {
|
||||||
|
env.color = "${currentBuild.currentResult == 'SUCCESS' ? 'green' : 'red'}"
|
||||||
|
}
|
||||||
|
|
||||||
|
echo 'Sending e-mail.'
|
||||||
|
sh "printenv | sort"
|
||||||
|
emailext body: "<b style=\"color:$COLOR\">${currentBuild.currentResult}</b> - ${env.JOB_NAME} (#${env.BUILD_NUMBER})<br> <ul style=\"margin-top:2px;padding-top:2px;padding-left:30px;\"><li>More info at: <a href=\"${env.BUILD_URL}\">${env.BUILD_URL}</a></li></ul>",
|
||||||
|
recipientProviders: [[$class: 'DevelopersRecipientProvider'], [$class: 'RequesterRecipientProvider']],
|
||||||
|
subject: "Jenkins Build - ${currentBuild.currentResult} - $JOB_NAME (#$BUILD_NUMBER)"
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -3,7 +3,7 @@
|
|||||||
## Important notes to read first:
|
## Important notes to read first:
|
||||||
|
|
||||||
1. This is a hobbyist project.
|
1. This is a hobbyist project.
|
||||||
2. This project is licenced as LGPL 2.1, which also means it is distributed without any warranty.
|
2. This project is licenced as GPL 3 or later (at your option), which also means it is distributed without any warranty.
|
||||||
3. In case, you find a bug or propose an improvement:
|
3. In case, you find a bug or propose an improvement:
|
||||||
* Raise an issue or participate a new discussion.
|
* Raise an issue or participate a new discussion.
|
||||||
|
|
||||||
|
12
docs/.gitignore
vendored
Normal file
12
docs/.gitignore
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
#files to ignore
|
||||||
|
|
||||||
|
*.metadata/**
|
||||||
|
*.recommenders/**
|
||||||
|
*target/**
|
||||||
|
*build/**
|
||||||
|
*.idea/**
|
||||||
|
*.iml
|
||||||
|
|
||||||
|
#*.class
|
||||||
|
/target/
|
||||||
|
*generated/*
|
95
docs/Jenkinsfile
vendored
Normal file
95
docs/Jenkinsfile
vendored
Normal file
@ -0,0 +1,95 @@
|
|||||||
|
pipeline
|
||||||
|
{
|
||||||
|
agent any
|
||||||
|
environment {
|
||||||
|
DEFAULT_LATEST_OUT_DIR = 'latest/en-US/html'
|
||||||
|
DEFAULT_SNAPSHOT_OUT_DIR = 'snapshot/en-US/html'
|
||||||
|
DOC_NAME = 'power-framework.docs'
|
||||||
|
}
|
||||||
|
stages
|
||||||
|
{
|
||||||
|
stage('Build')
|
||||||
|
{
|
||||||
|
steps {
|
||||||
|
|
||||||
|
echo "*** Building ${env.JOB_NAME} ***"
|
||||||
|
sh '''
|
||||||
|
#!/bin/bash
|
||||||
|
echo JOB_NAME=$JOB_NAME
|
||||||
|
|
||||||
|
if [ -z "$DOG_HOME" ]
|
||||||
|
then
|
||||||
|
echo "KO : Variable DOG_HOME is empty. You fix this issue by adding this variable to Jenkins"
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
echo "OK : Variable DOG_HOME is NOT empty"
|
||||||
|
fi
|
||||||
|
|
||||||
|
alias dog='java -jar $DOG_HOME/dog-*-jar-with-dependencies.jar'
|
||||||
|
|
||||||
|
dog
|
||||||
|
echo "Build of documentation was successful"
|
||||||
|
'''
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
stage('Deploy')
|
||||||
|
{
|
||||||
|
steps {
|
||||||
|
echo "*** Deploying ${env.JOB_NAME} ***"
|
||||||
|
|
||||||
|
sh '''
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
case $BRANCH_NAME in
|
||||||
|
|
||||||
|
master)
|
||||||
|
echo Branch $BRANCH_NAME is supported. Continuing.
|
||||||
|
OUT_DIR=$DEFAULT_LATEST_OUT_DIR
|
||||||
|
;;
|
||||||
|
|
||||||
|
develop | jenkins)
|
||||||
|
echo Branch $BRANCH_NAME is supported. Continuing.
|
||||||
|
OUT_DIR=$DEFAULT_SNAPSHOT_OUT_DIR
|
||||||
|
;;
|
||||||
|
|
||||||
|
*)
|
||||||
|
echo Branch $BRANCH_NAME is not supported. A failure happened. Exiting.
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ -z "$DOC_NAME" ]
|
||||||
|
then
|
||||||
|
echo "KO : Variable DOC_NAME is empty. You fix this issue by adding this variable to section 'environment' of this Jenkinsfile"
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
echo "OK : Variable DOC_NAME is NOT empty"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -z "$DOCS_ROOT_DIR" ]
|
||||||
|
then
|
||||||
|
echo "KO : Variable DOCS_ROOT_DIR is empty. You fix this issue by adding this variable to Jenkins configuration"
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
echo "OK : Variable DOCS_ROOT_DIR is NOT empty"
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "OUT_DIR=$OUT_DIR"
|
||||||
|
FULL_OUTPUT_DIR=$DOCS_ROOT_DIR/$DOC_NAME/$OUT_DIR
|
||||||
|
if [ -z "$FULL_OUTPUT_DIR" ]
|
||||||
|
then
|
||||||
|
echo "KO : Variable FULL_OUTPUT_DIR is empty"
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
echo "OK Variable FULL_OUTPUT_DIR is NOT empty"
|
||||||
|
rsync -vaz ./generated/ $FULL_OUTPUT_DIR
|
||||||
|
echo "Deployment of documentation was successful"
|
||||||
|
fi
|
||||||
|
'''
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
170
docs/LICENSE
Normal file
170
docs/LICENSE
Normal file
@ -0,0 +1,170 @@
|
|||||||
|
Creative Commons Attribution-ShareAlike 4.0 International
|
||||||
|
|
||||||
|
Creative Commons Corporation (“Creative Commons”) is not a law firm and does not provide legal services or legal advice. Distribution of Creative Commons public licenses does not create a lawyer-client or other relationship. Creative Commons makes its licenses and related information available on an “as-is” basis. Creative Commons gives no warranties regarding its licenses, any material licensed under their terms and conditions, or any related information. Creative Commons disclaims all liability for damages resulting from their use to the fullest extent possible.
|
||||||
|
|
||||||
|
Using Creative Commons Public Licenses
|
||||||
|
|
||||||
|
Creative Commons public licenses provide a standard set of terms and conditions that creators and other rights holders may use to share original works of authorship and other material subject to copyright and certain other rights specified in the public license below. The following considerations are for informational purposes only, are not exhaustive, and do not form part of our licenses.
|
||||||
|
|
||||||
|
Considerations for licensors: Our public licenses are intended for use by those authorized to give the public permission to use material in ways otherwise restricted by copyright and certain other rights. Our licenses are irrevocable. Licensors should read and understand the terms and conditions of the license they choose before applying it. Licensors should also secure all rights necessary before applying our licenses so that the public can reuse the material as expected. Licensors should clearly mark any material not subject to the license. This includes other CC-licensed material, or material used under an exception or limitation to copyright. More considerations for licensors.
|
||||||
|
|
||||||
|
Considerations for the public: By using one of our public licenses, a licensor grants the public permission to use the licensed material under specified terms and conditions. If the licensor’s permission is not necessary for any reason–for example, because of any applicable exception or limitation to copyright–then that use is not regulated by the license. Our licenses grant only permissions under copyright and certain other rights that a licensor has authority to grant. Use of the licensed material may still be restricted for other reasons, including because others have copyright or other rights in the material. A licensor may make special requests, such as asking that all changes be marked or described.
|
||||||
|
|
||||||
|
Although not required by our licenses, you are encouraged to respect those requests where reasonable. More considerations for the public.
|
||||||
|
|
||||||
|
Creative Commons Attribution-ShareAlike 4.0 International Public License
|
||||||
|
|
||||||
|
By exercising the Licensed Rights (defined below), You accept and agree to be bound by the terms and conditions of this Creative Commons Attribution-ShareAlike 4.0 International Public License ("Public License"). To the extent this Public License may be interpreted as a contract, You are granted the Licensed Rights in consideration of Your acceptance of these terms and conditions, and the Licensor grants You such rights in consideration of benefits the Licensor receives from making the Licensed Material available under these terms and conditions.
|
||||||
|
|
||||||
|
Section 1 – Definitions.
|
||||||
|
|
||||||
|
a. Adapted Material means material subject to Copyright and Similar Rights that is derived from or based upon the Licensed Material and in which the Licensed Material is translated, altered, arranged, transformed, or otherwise modified in a manner requiring permission under the Copyright and Similar Rights held by the Licensor. For purposes of this Public License, where the Licensed Material is a musical work, performance, or sound recording, Adapted Material is always produced where the Licensed Material is synched in timed relation with a moving image.
|
||||||
|
|
||||||
|
b. Adapter's License means the license You apply to Your Copyright and Similar Rights in Your contributions to Adapted Material in accordance with the terms and conditions of this Public License.
|
||||||
|
|
||||||
|
c. BY-SA Compatible License means a license listed at creativecommons.org/compatiblelicenses, approved by Creative Commons as essentially the equivalent of this Public License.
|
||||||
|
|
||||||
|
d. Copyright and Similar Rights means copyright and/or similar rights closely related to copyright including, without limitation, performance, broadcast, sound recording, and Sui Generis Database Rights, without regard to how the rights are labeled or categorized. For purposes of this Public License, the rights specified in Section 2(b)(1)-(2) are not Copyright and Similar Rights.
|
||||||
|
|
||||||
|
e. Effective Technological Measures means those measures that, in the absence of proper authority, may not be circumvented under laws fulfilling obligations under Article 11 of the WIPO Copyright Treaty adopted on December 20, 1996, and/or similar international agreements.
|
||||||
|
|
||||||
|
f. Exceptions and Limitations means fair use, fair dealing, and/or any other exception or limitation to Copyright and Similar Rights that applies to Your use of the Licensed Material.
|
||||||
|
|
||||||
|
g. License Elements means the license attributes listed in the name of a Creative Commons Public License. The License Elements of this Public License are Attribution and ShareAlike.
|
||||||
|
|
||||||
|
h. Licensed Material means the artistic or literary work, database, or other material to which the Licensor applied this Public License.
|
||||||
|
|
||||||
|
i. Licensed Rights means the rights granted to You subject to the terms and conditions of this Public License, which are limited to all Copyright and Similar Rights that apply to Your use of the Licensed Material and that the Licensor has authority to license.
|
||||||
|
|
||||||
|
j. Licensor means the individual(s) or entity(ies) granting rights under this Public License.
|
||||||
|
|
||||||
|
k. Share means to provide material to the public by any means or process that requires permission under the Licensed Rights, such as reproduction, public display, public performance, distribution, dissemination, communication, or importation, and to make material available to the public including in ways that members of the public may access the material from a place and at a time individually chosen by them.
|
||||||
|
|
||||||
|
l. Sui Generis Database Rights means rights other than copyright resulting from Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, as amended and/or succeeded, as well as other essentially equivalent rights anywhere in the world.
|
||||||
|
|
||||||
|
m. You means the individual or entity exercising the Licensed Rights under this Public License. Your has a corresponding meaning.
|
||||||
|
|
||||||
|
Section 2 – Scope.
|
||||||
|
|
||||||
|
a. License grant.
|
||||||
|
|
||||||
|
1. Subject to the terms and conditions of this Public License, the Licensor hereby grants You a worldwide, royalty-free, non-sublicensable, non-exclusive, irrevocable license to exercise the Licensed Rights in the Licensed Material to:
|
||||||
|
|
||||||
|
A. reproduce and Share the Licensed Material, in whole or in part; and
|
||||||
|
|
||||||
|
B. produce, reproduce, and Share Adapted Material.
|
||||||
|
|
||||||
|
2. Exceptions and Limitations. For the avoidance of doubt, where Exceptions and Limitations apply to Your use, this Public License does not apply, and You do not need to comply with its terms and conditions.
|
||||||
|
|
||||||
|
3. Term. The term of this Public License is specified in Section 6(a).
|
||||||
|
|
||||||
|
4. Media and formats; technical modifications allowed. The Licensor authorizes You to exercise the Licensed Rights in all media and formats whether now known or hereafter created, and to make technical modifications necessary to do so. The Licensor waives and/or agrees not to assert any right or authority to forbid You from making technical modifications necessary to exercise the Licensed Rights, including technical modifications necessary to circumvent Effective Technological Measures. For purposes of this Public License, simply making modifications authorized by this Section 2(a)(4) never produces Adapted Material.
|
||||||
|
|
||||||
|
5. Downstream recipients.
|
||||||
|
|
||||||
|
A. Offer from the Licensor – Licensed Material. Every recipient of the Licensed Material automatically receives an offer from the Licensor to exercise the Licensed Rights under the terms and conditions of this Public License.
|
||||||
|
|
||||||
|
B. Additional offer from the Licensor – Adapted Material. Every recipient of Adapted Material from You automatically receives an offer from the Licensor to exercise the Licensed Rights in the Adapted Material under the conditions of the Adapter’s License You apply.
|
||||||
|
|
||||||
|
C. No downstream restrictions. You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, the Licensed Material if doing so restricts exercise of the Licensed Rights by any recipient of the Licensed Material.
|
||||||
|
|
||||||
|
6. No endorsement. Nothing in this Public License constitutes or may be construed as permission to assert or imply that You are, or that Your use of the Licensed Material is, connected with, or sponsored, endorsed, or granted official status by, the Licensor or others designated to receive attribution as provided in Section 3(a)(1)(A)(i).
|
||||||
|
|
||||||
|
b. Other rights.
|
||||||
|
|
||||||
|
1. Moral rights, such as the right of integrity, are not licensed under this Public License, nor are publicity, privacy, and/or other similar personality rights; however, to the extent possible, the Licensor waives and/or agrees not to assert any such rights held by the Licensor to the limited extent necessary to allow You to exercise the Licensed Rights, but not otherwise.
|
||||||
|
|
||||||
|
2. Patent and trademark rights are not licensed under this Public License.
|
||||||
|
|
||||||
|
3. To the extent possible, the Licensor waives any right to collect royalties from You for the exercise of the Licensed Rights, whether directly or through a collecting society under any voluntary or waivable statutory or compulsory licensing scheme. In all other cases the Licensor expressly reserves any right to collect such royalties.
|
||||||
|
|
||||||
|
Section 3 – License Conditions.
|
||||||
|
|
||||||
|
Your exercise of the Licensed Rights is expressly made subject to the following conditions.
|
||||||
|
|
||||||
|
a. Attribution.
|
||||||
|
|
||||||
|
1. If You Share the Licensed Material (including in modified form), You must:
|
||||||
|
|
||||||
|
A. retain the following if it is supplied by the Licensor with the Licensed Material:
|
||||||
|
|
||||||
|
i. identification of the creator(s) of the Licensed Material and any others designated to receive attribution, in any reasonable manner requested by the Licensor (including by pseudonym if designated);
|
||||||
|
|
||||||
|
ii. a copyright notice;
|
||||||
|
|
||||||
|
iii. a notice that refers to this Public License;
|
||||||
|
|
||||||
|
iv. a notice that refers to the disclaimer of warranties;
|
||||||
|
|
||||||
|
v. a URI or hyperlink to the Licensed Material to the extent reasonably practicable;
|
||||||
|
|
||||||
|
B. indicate if You modified the Licensed Material and retain an indication of any previous modifications; and
|
||||||
|
|
||||||
|
C. indicate the Licensed Material is licensed under this Public License, and include the text of, or the URI or hyperlink to, this Public License.
|
||||||
|
|
||||||
|
2. You may satisfy the conditions in Section 3(a)(1) in any reasonable manner based on the medium, means, and context in which You Share the Licensed Material. For example, it may be reasonable to satisfy the conditions by providing a URI or hyperlink to a resource that includes the required information.
|
||||||
|
|
||||||
|
3. If requested by the Licensor, You must remove any of the information required by Section 3(a)(1)(A) to the extent reasonably practicable.
|
||||||
|
|
||||||
|
b. ShareAlike.In addition to the conditions in Section 3(a), if You Share Adapted Material You produce, the following conditions also apply.
|
||||||
|
|
||||||
|
1. The Adapter’s License You apply must be a Creative Commons license with the same License Elements, this version or later, or a BY-SA Compatible License.
|
||||||
|
|
||||||
|
2. You must include the text of, or the URI or hyperlink to, the Adapter's License You apply. You may satisfy this condition in any reasonable manner based on the medium, means, and context in which You Share Adapted Material.
|
||||||
|
|
||||||
|
3. You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, Adapted Material that restrict exercise of the rights granted under the Adapter's License You apply.
|
||||||
|
|
||||||
|
Section 4 – Sui Generis Database Rights.
|
||||||
|
|
||||||
|
Where the Licensed Rights include Sui Generis Database Rights that apply to Your use of the Licensed Material:
|
||||||
|
|
||||||
|
a. for the avoidance of doubt, Section 2(a)(1) grants You the right to extract, reuse, reproduce, and Share all or a substantial portion of the contents of the database;
|
||||||
|
|
||||||
|
b. if You include all or a substantial portion of the database contents in a database in which You have Sui Generis Database Rights, then the database in which You have Sui Generis Database Rights (but not its individual contents) is Adapted Material, including for purposes of Section 3(b); and
|
||||||
|
|
||||||
|
c. You must comply with the conditions in Section 3(a) if You Share all or a substantial portion of the contents of the database.
|
||||||
|
For the avoidance of doubt, this Section 4 supplements and does not replace Your obligations under this Public License where the Licensed Rights include other Copyright and Similar Rights.
|
||||||
|
|
||||||
|
Section 5 – Disclaimer of Warranties and Limitation of Liability.
|
||||||
|
|
||||||
|
a. Unless otherwise separately undertaken by the Licensor, to the extent possible, the Licensor offers the Licensed Material as-is and as-available, and makes no representations or warranties of any kind concerning the Licensed Material, whether express, implied, statutory, or other. This includes, without limitation, warranties of title, merchantability, fitness for a particular purpose, non-infringement, absence of latent or other defects, accuracy, or the presence or absence of errors, whether or not known or discoverable. Where disclaimers of warranties are not allowed in full or in part, this disclaimer may not apply to You.
|
||||||
|
|
||||||
|
b. To the extent possible, in no event will the Licensor be liable to You on any legal theory (including, without limitation, negligence) or otherwise for any direct, special, indirect, incidental, consequential, punitive, exemplary, or other losses, costs, expenses, or damages arising out of this Public License or use of the Licensed Material, even if the Licensor has been advised of the possibility of such losses, costs, expenses, or damages. Where a limitation of liability is not allowed in full or in part, this limitation may not apply to You.
|
||||||
|
|
||||||
|
c. The disclaimer of warranties and limitation of liability provided above shall be interpreted in a manner that, to the extent possible, most closely approximates an absolute disclaimer and waiver of all liability.
|
||||||
|
|
||||||
|
Section 6 – Term and Termination.
|
||||||
|
|
||||||
|
a. This Public License applies for the term of the Copyright and Similar Rights licensed here. However, if You fail to comply with this Public License, then Your rights under this Public License terminate automatically.
|
||||||
|
|
||||||
|
b. Where Your right to use the Licensed Material has terminated under Section 6(a), it reinstates:
|
||||||
|
|
||||||
|
1. automatically as of the date the violation is cured, provided it is cured within 30 days of Your discovery of the violation; or
|
||||||
|
|
||||||
|
2. upon express reinstatement by the Licensor.
|
||||||
|
|
||||||
|
c. For the avoidance of doubt, this Section 6(b) does not affect any right the Licensor may have to seek remedies for Your violations of this Public License.
|
||||||
|
|
||||||
|
d. For the avoidance of doubt, the Licensor may also offer the Licensed Material under separate terms or conditions or stop distributing the Licensed Material at any time; however, doing so will not terminate this Public License.
|
||||||
|
|
||||||
|
e. Sections 1, 5, 6, 7, and 8 survive termination of this Public License.
|
||||||
|
|
||||||
|
Section 7 – Other Terms and Conditions.
|
||||||
|
|
||||||
|
a. The Licensor shall not be bound by any additional or different terms or conditions communicated by You unless expressly agreed.
|
||||||
|
|
||||||
|
b. Any arrangements, understandings, or agreements regarding the Licensed Material not stated herein are separate from and independent of the terms and conditions of this Public License.
|
||||||
|
|
||||||
|
Section 8 – Interpretation.
|
||||||
|
|
||||||
|
a. For the avoidance of doubt, this Public License does not, and shall not be interpreted to, reduce, limit, restrict, or impose conditions on any use of the Licensed Material that could lawfully be made without permission under this Public License.
|
||||||
|
|
||||||
|
b. To the extent possible, if any provision of this Public License is deemed unenforceable, it shall be automatically reformed to the minimum extent necessary to make it enforceable. If the provision cannot be reformed, it shall be severed from this Public License without affecting the enforceability of the remaining terms and conditions.
|
||||||
|
|
||||||
|
c. No term or condition of this Public License will be waived and no failure to comply consented to unless expressly agreed to by the Licensor.
|
||||||
|
|
||||||
|
d. Nothing in this Public License constitutes or may be interpreted as a limitation upon, or waiver of, any privileges and immunities that apply to the Licensor or You, including from the legal processes of any jurisdiction or authority.
|
||||||
|
|
||||||
|
Creative Commons is not a party to its public licenses. Notwithstanding, Creative Commons may elect to apply one of its public licenses to material it publishes and in those instances will be considered the “Licensor.” Except for the limited purpose of indicating that material is shared under a Creative Commons public license or as otherwise permitted by the Creative Commons policies published at creativecommons.org/policies, Creative Commons does not authorize the use of the trademark “Creative Commons” or any other trademark or logo of Creative Commons without its prior written consent including, without limitation, in connection with any unauthorized modifications to any of its public licenses or any other arrangements, understandings, or agreements concerning use of licensed material. For the avoidance of doubt, this paragraph does not form part of the public licenses.
|
||||||
|
|
||||||
|
Creative Commons may be contacted at creativecommons.org.
|
2
docs/README.md
Normal file
2
docs/README.md
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# power-framework.docs
|
||||||
|
|
128
docs/content/Introduction/index.adoc
Normal file
128
docs/content/Introduction/index.adoc
Normal file
@ -0,0 +1,128 @@
|
|||||||
|
= Power Framework - Documentation
|
||||||
|
|
||||||
|
////
|
||||||
|
weight=1000
|
||||||
|
////
|
||||||
|
|
||||||
|
////
|
||||||
|
+++
|
||||||
|
title = "About"
|
||||||
|
date = "2023-11-121"
|
||||||
|
menu = "main"
|
||||||
|
+++
|
||||||
|
////
|
||||||
|
|
||||||
|
|
||||||
|
*Power Framework* is a multipurpose Java library.
|
||||||
|
|
||||||
|
----
|
||||||
|
class ValueHolder<T> {
|
||||||
|
private T value;
|
||||||
|
private Class clazz;
|
||||||
|
|
||||||
|
public ValueHolder(T valueIn) {
|
||||||
|
this.value = valueIn;
|
||||||
|
this.clazz = valueIn == null ? null : valueIn.getClass();
|
||||||
|
}
|
||||||
|
|
||||||
|
public final T getValue() {
|
||||||
|
return this.value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public final Class getClassOfValue() {
|
||||||
|
return this.clazz;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
class IntegerHolder extends ValueHolder<Integer> {
|
||||||
|
|
||||||
|
public IntegerHolder(Integer valueIn) {
|
||||||
|
super(valueIn);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
enum PrimitiveType {
|
||||||
|
INT, LONG, FLOAT, DOUBLE, BOOLEAN;
|
||||||
|
}
|
||||||
|
|
||||||
|
class PrimitiveHolder<T> {
|
||||||
|
private int intValue = 0;
|
||||||
|
private long longValue = 0l;
|
||||||
|
private float floatValue = 0f;
|
||||||
|
private double doubleValue = 0d;
|
||||||
|
private boolean booleanValue = false;
|
||||||
|
private final PrimitiveType primitiveType;
|
||||||
|
|
||||||
|
public PrimitiveHolder(int intValueIn) {
|
||||||
|
this.intValue = intValueIn;
|
||||||
|
this.primitiveType = PrimitiveType.INT;
|
||||||
|
}
|
||||||
|
|
||||||
|
public PrimitiveHolder(long longValueIn) {
|
||||||
|
this.longValue = longValueIn;
|
||||||
|
this.primitiveType = PrimitiveType.LONG;
|
||||||
|
}
|
||||||
|
|
||||||
|
public PrimitiveHolder(float floatValueIn) {
|
||||||
|
this.floatValue = floatValueIn;
|
||||||
|
this.primitiveType = PrimitiveType.FLOAT;
|
||||||
|
}
|
||||||
|
|
||||||
|
public PrimitiveHolder(double doubleValueIn) {
|
||||||
|
this.doubleValue = doubleValueIn;
|
||||||
|
this.primitiveType = PrimitiveType.DOUBLE.INT;
|
||||||
|
}
|
||||||
|
|
||||||
|
public PrimitiveHolder(boolean booleanValueIn) {
|
||||||
|
this.booleanValue = booleanValueIn;
|
||||||
|
this.primitiveType = PrimitiveType.BOOLEAN;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getIntValue() {
|
||||||
|
if (this.primitiveType != PrimitiveType.INT) {
|
||||||
|
throw new RuntimeException("Unsupported method for primitive type: " + primitiveType);
|
||||||
|
}
|
||||||
|
return intValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
public long getLongValue() {
|
||||||
|
if (this.primitiveType != PrimitiveType.LONG) {
|
||||||
|
throw new RuntimeException("Unsupported method for primitive type: " + primitiveType);
|
||||||
|
}
|
||||||
|
return longValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
public float getFloatValue() {
|
||||||
|
if (this.primitiveType != PrimitiveType.FLOAT) {
|
||||||
|
throw new RuntimeException("Unsupported method for primitive type: " + primitiveType);
|
||||||
|
}
|
||||||
|
return floatValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
public double getDoubleValue() {
|
||||||
|
if (this.primitiveType != PrimitiveType.DOUBLE) {
|
||||||
|
throw new RuntimeException("Unsupported method for primitive type: " + primitiveType);
|
||||||
|
}
|
||||||
|
return doubleValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isBooleanValue() {
|
||||||
|
if (this.primitiveType != PrimitiveType.BOOLEAN) {
|
||||||
|
throw new RuntimeException("Unsupported method for primitive type: " + primitiveType);
|
||||||
|
}
|
||||||
|
return booleanValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
public PrimitiveType getPrimitiveType() {
|
||||||
|
return primitiveType;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void test(String[] args) {
|
||||||
|
//test
|
||||||
|
List<PrimitiveHolder> primitiveHolderList = new ArrayList<>();
|
||||||
|
primitiveHolderList.add(new PrimitiveHolder(5));
|
||||||
|
}
|
||||||
|
|
||||||
|
----
|
15
docs/content/Modules/Container/index.adoc
Normal file
15
docs/content/Modules/Container/index.adoc
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
= Stat
|
||||||
|
|
||||||
|
////
|
||||||
|
weight=800
|
||||||
|
////
|
||||||
|
|
||||||
|
////
|
||||||
|
+++
|
||||||
|
title = "About"
|
||||||
|
date = "2023-11-12"
|
||||||
|
menu = "main"
|
||||||
|
+++
|
||||||
|
////
|
||||||
|
|
||||||
|
Spring Framework alternative.
|
23
docs/content/Modules/Json/index.adoc
Normal file
23
docs/content/Modules/Json/index.adoc
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
= Json
|
||||||
|
|
||||||
|
////
|
||||||
|
weight=800
|
||||||
|
////
|
||||||
|
|
||||||
|
////
|
||||||
|
+++
|
||||||
|
title = "About"
|
||||||
|
date = "2023-11-12"
|
||||||
|
menu = "main"
|
||||||
|
+++
|
||||||
|
////
|
||||||
|
|
||||||
|
----
|
||||||
|
Todo:
|
||||||
|
Handle escape sequences
|
||||||
|
Accessing by dot strings
|
||||||
|
----
|
||||||
|
|
||||||
|
link:minimal.json[minimal.json]
|
||||||
|
|
||||||
|
link:pretty.json[pretty.json]
|
1
docs/content/Modules/Json/minimal.json
Normal file
1
docs/content/Modules/Json/minimal.json
Normal file
@ -0,0 +1 @@
|
|||||||
|
{"date of death":null,"father":{"name":"Peter","surname":"Black"},"mother":{"name":"Sue","surname":"Black"},"property":[null,{"type":"computer","cpu":"corei7","ram":"16GB"},["8GB memory card","16GB memory card","32GB memory card","128GB memory card"],true,"car","y",42,9987987998798,4.56,1.646659262492],"is rich":true,"name":"John","surname":"Black","date of birth":"1975-09-23","favorit letter":"W","year of birth":1975,"favorit very long number":8798799845647987,"height":173.5466,"height- high precision":173.54666549879545}
|
41
docs/content/Modules/Json/pretty.json
Normal file
41
docs/content/Modules/Json/pretty.json
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
{
|
||||||
|
"date of death":null,
|
||||||
|
"father":{
|
||||||
|
"name":"Peter",
|
||||||
|
"surname":"Black"
|
||||||
|
},
|
||||||
|
"mother":{
|
||||||
|
"name":"Sue",
|
||||||
|
"surname":"Black"
|
||||||
|
},
|
||||||
|
"property":[
|
||||||
|
null,
|
||||||
|
{
|
||||||
|
"type":"computer",
|
||||||
|
"cpu":"corei7",
|
||||||
|
"ram":"16GB"
|
||||||
|
},
|
||||||
|
[
|
||||||
|
"8GB memory card",
|
||||||
|
"16GB memory card",
|
||||||
|
"32GB memory card",
|
||||||
|
"128GB memory card"
|
||||||
|
],
|
||||||
|
true,
|
||||||
|
"car",
|
||||||
|
"y",
|
||||||
|
42,
|
||||||
|
9987987998798,
|
||||||
|
4.56,
|
||||||
|
1.646659262492
|
||||||
|
],
|
||||||
|
"is rich":true,
|
||||||
|
"name":"John",
|
||||||
|
"surname":"Black",
|
||||||
|
"date of birth":"1975-09-23",
|
||||||
|
"favorit letter":"W",
|
||||||
|
"year of birth":1975,
|
||||||
|
"favorit very long number":8798799845647987,
|
||||||
|
"height":173.5466,
|
||||||
|
"height- high precision":173.54666549879545
|
||||||
|
}
|
15
docs/content/Modules/Random/index.adoc
Normal file
15
docs/content/Modules/Random/index.adoc
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
= Random
|
||||||
|
|
||||||
|
////
|
||||||
|
weight=800
|
||||||
|
////
|
||||||
|
|
||||||
|
////
|
||||||
|
+++
|
||||||
|
title = "About"
|
||||||
|
date = "2023-11-12"
|
||||||
|
menu = "main"
|
||||||
|
+++
|
||||||
|
////
|
||||||
|
|
||||||
|
link:pseudorandomness.ods[pseudorandomness.ods]
|
BIN
docs/content/Modules/Random/pseudorandomness.ods
Normal file
BIN
docs/content/Modules/Random/pseudorandomness.ods
Normal file
Binary file not shown.
24
docs/content/Modules/Shark/index.adoc
Normal file
24
docs/content/Modules/Shark/index.adoc
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
= Shark
|
||||||
|
|
||||||
|
////
|
||||||
|
weight=800
|
||||||
|
////
|
||||||
|
|
||||||
|
////
|
||||||
|
+++
|
||||||
|
title = "About"
|
||||||
|
date = "2023-11-12"
|
||||||
|
menu = "main"
|
||||||
|
+++
|
||||||
|
////
|
||||||
|
|
||||||
|
----
|
||||||
|
if a > 1 do write("ahoj svete") enddo else do write(2) enddo
|
||||||
|
bol
|
||||||
|
dec
|
||||||
|
num
|
||||||
|
bigdec
|
||||||
|
bignum
|
||||||
|
str
|
||||||
|
bol a = tr
|
||||||
|
----
|
15
docs/content/Modules/Stat/index.adoc
Normal file
15
docs/content/Modules/Stat/index.adoc
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
= Stat
|
||||||
|
|
||||||
|
////
|
||||||
|
weight=800
|
||||||
|
////
|
||||||
|
|
||||||
|
////
|
||||||
|
+++
|
||||||
|
title = "About"
|
||||||
|
date = "2023-11-12"
|
||||||
|
menu = "main"
|
||||||
|
+++
|
||||||
|
////
|
||||||
|
|
||||||
|
Used Power Collections or Power Json and creates statistics.
|
26
docs/content/Modules/Time/index.adoc
Normal file
26
docs/content/Modules/Time/index.adoc
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
= Time
|
||||||
|
|
||||||
|
////
|
||||||
|
weight=800
|
||||||
|
////
|
||||||
|
|
||||||
|
////
|
||||||
|
+++
|
||||||
|
title = "About"
|
||||||
|
date = "2023-11-12"
|
||||||
|
menu = "main"
|
||||||
|
+++
|
||||||
|
////
|
||||||
|
|
||||||
|
----
|
||||||
|
Todo
|
||||||
|
Calendar c = Calendar.getInstance();
|
||||||
|
c.setTime(currentDate);
|
||||||
|
// manipulate date
|
||||||
|
c.add(Calendar.YEAR, 1);
|
||||||
|
c.add(Calendar.MONTH, 1);
|
||||||
|
c.add(Calendar.DATE, 1); //same with c.add(Calendar.DAY_OF_MONTH, 1);
|
||||||
|
c.add(Calendar.HOUR, 1);
|
||||||
|
c.add(Calendar.MINUTE, 1);
|
||||||
|
c.add(Calendar.SECOND, 1);
|
||||||
|
----
|
79
docs/content/Modules/Utils/index.adoc
Normal file
79
docs/content/Modules/Utils/index.adoc
Normal file
@ -0,0 +1,79 @@
|
|||||||
|
= Utils
|
||||||
|
|
||||||
|
////
|
||||||
|
weight=800
|
||||||
|
////
|
||||||
|
|
||||||
|
////
|
||||||
|
+++
|
||||||
|
title = "About"
|
||||||
|
date = "2023-11-12"
|
||||||
|
menu = "main"
|
||||||
|
+++
|
||||||
|
////
|
||||||
|
|
||||||
|
----
|
||||||
|
private boolean isInRange(final int value, final int min, final int max) {
|
||||||
|
return ((value >= min) && (value <= max));
|
||||||
|
}
|
||||||
|
----
|
||||||
|
|
||||||
|
|
||||||
|
----
|
||||||
|
import java.io.UnsupportedEncodingException;
|
||||||
|
import java.security.MessageDigest;
|
||||||
|
import java.security.NoSuchAlgorithmException;
|
||||||
|
|
||||||
|
import sun.nio.cs.StandardCharsets;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Converts byte array to its hexadecimal representation
|
||||||
|
*
|
||||||
|
* @param byteArray
|
||||||
|
* @return
|
||||||
|
* @throws UnsupportedEncodingException
|
||||||
|
*/
|
||||||
|
private static String convertByteArrayToHex(final byte[] byteArray) {
|
||||||
|
StringBuffer sb = new StringBuffer();
|
||||||
|
|
||||||
|
for (int i = 0; i < byteArray.length; i++) {
|
||||||
|
byte b = byteArray[i];
|
||||||
|
sb.append(byteToHex(b));
|
||||||
|
}
|
||||||
|
String result = sb.toString();
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
private final static char[] HEX_CHARS = new char[] {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'};
|
||||||
|
|
||||||
|
private static String byteToHex(byte b) {
|
||||||
|
int number = b;
|
||||||
|
|
||||||
|
// standardization from byte
|
||||||
|
if (number < 0) {
|
||||||
|
number = 256 + number;
|
||||||
|
}
|
||||||
|
|
||||||
|
int b1 = number / 16;
|
||||||
|
int b2 = number - b1 * 16;
|
||||||
|
String char1 = String.valueOf(HEX_CHARS[b1]);
|
||||||
|
String char2 = String.valueOf(HEX_CHARS[b2]);
|
||||||
|
return char1 + char2;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
private static String byteToHex(final byte[] hash) {
|
||||||
|
Formatter formatter = new Formatter();
|
||||||
|
for (byte b : hash) {
|
||||||
|
formatter.format("%02x", b);
|
||||||
|
}
|
||||||
|
String result = formatter.toString();
|
||||||
|
formatter.close();
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
----
|
13
docs/content/Modules/index.adoc
Normal file
13
docs/content/Modules/index.adoc
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
= Power Framework - Documentation
|
||||||
|
|
||||||
|
////
|
||||||
|
weight=800
|
||||||
|
////
|
||||||
|
|
||||||
|
////
|
||||||
|
+++
|
||||||
|
title = "About"
|
||||||
|
date = "2023-11-12"
|
||||||
|
menu = "main"
|
||||||
|
+++
|
||||||
|
////
|
11
docs/content/index.adoc
Normal file
11
docs/content/index.adoc
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
= Power Framework - Documentation
|
||||||
|
|
||||||
|
////
|
||||||
|
+++
|
||||||
|
title = "About"
|
||||||
|
date = "2023-11-12"
|
||||||
|
menu = "main"
|
||||||
|
+++
|
||||||
|
////
|
||||||
|
|
||||||
|
This site provides documentation for "Power Framework" library.
|
9
docs/dog.conf
Normal file
9
docs/dog.conf
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
title = Power Framework - Documentation
|
||||||
|
editURL = https://github.com/robertvokac/power-framework/_edit/develop/content/
|
||||||
|
description = Power Framework - Documentation
|
||||||
|
author = Robert Vokac
|
||||||
|
showVisitedLinks = true
|
||||||
|
disableBreadcrumb = false
|
||||||
|
disableNextPrev = false
|
||||||
|
titleSeparator=|
|
||||||
|
frontPageName=Introduction
|
7
docs/templates/footer.html
vendored
Normal file
7
docs/templates/footer.html
vendored
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
<style>
|
||||||
|
.footer2 a {color:#5dade2;}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<div class="footer2">
|
||||||
|
Copyright © 2016-2023 The Authors. Made with <a href="https://github.com/robertvokac/power-framework">Dog</a>.
|
||||||
|
<div>
|
31
docs/templates/header.html
vendored
Normal file
31
docs/templates/header.html
vendored
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
<style>
|
||||||
|
|
||||||
|
#rv_banner {
|
||||||
|
|
||||||
|
|
||||||
|
font-size:2em;
|
||||||
|
font-weight: 500;
|
||||||
|
padding-top: 6px !important;
|
||||||
|
padding-bottom: 9px !important;
|
||||||
|
text-align:left;
|
||||||
|
padding-left:60px;
|
||||||
|
|
||||||
|
background: #7cd3ff;
|
||||||
|
background: linear-gradient(180deg, rgba(124, 211, 255,0.4) 10%, white 60%);
|
||||||
|
}
|
||||||
|
|
||||||
|
#rv_banner a {
|
||||||
|
|
||||||
|
text-decoration:none;
|
||||||
|
text-transform: uppercase;
|
||||||
|
color:#4169E1 !important;
|
||||||
|
font-weight: 600;
|
||||||
|
display:inline-block;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<div id="rv_banner"><a href="https://robertvokac.com" style="text-transform:none;"><span style="color:blue;">Documentation</span></a> | <a href="https://robertvokac.com" target="_parent">robertvokac.com</a> Project</div>
|
||||||
|
|
74
pom.xml
74
pom.xml
@ -1,36 +1,37 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!--
|
<!--
|
||||||
power-framework: Java library with many purposes of usage.
|
power-framework: Java library with many purposes of usage.
|
||||||
Copyright (C) 2016-2022 the original author or authors.
|
Copyright (C) 2016-2024 the original author or authors.
|
||||||
|
|
||||||
This library is free software; you can redistribute it and/or
|
This program is free software: you can redistribute it and/or
|
||||||
modify it under the terms of the GNU Lesser General Public
|
modify it under the terms of the GNU General Public License
|
||||||
License as published by the Free Software Foundation;
|
as published by the Free Software Foundation, either version 3
|
||||||
version 2.1 of the License only.
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
This library is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
Lesser General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU Lesser General Public
|
You should have received a copy of the GNU General Public License
|
||||||
License along with this library; if not, write to the Free Software
|
along with this program. If not, see
|
||||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
<https://www.gnu.org/licenses/> or write to the Free Software
|
||||||
-->
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
-->
|
||||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>org.nanoboot.essential</groupId>
|
<groupId>com.robertvokac.essential</groupId>
|
||||||
<artifactId>nanoboot-parent</artifactId>
|
<artifactId>robertvokac-parent</artifactId>
|
||||||
<version>0.1.0</version>
|
<version>0.1.1-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<groupId>org.nanoboot.powerframework</groupId>
|
<groupId>com.robertvokac.powerframework</groupId>
|
||||||
<artifactId>power-framework</artifactId>
|
<artifactId>power-framework</artifactId>
|
||||||
<version>2.0.0</version>
|
<version>2.0.1-SNAPSHOT</version>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
|
|
||||||
<name>Power Framework</name>
|
<name>Power Framework</name>
|
||||||
@ -40,7 +41,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|||||||
time, database, files, desktop graphics and some others.
|
time, database, files, desktop graphics and some others.
|
||||||
</description>
|
</description>
|
||||||
|
|
||||||
<url>http://robertvokac/products/power-framework</url>
|
<url>https://github.com/robertvokac/power-framework</url>
|
||||||
<inceptionYear>2016</inceptionYear>
|
<inceptionYear>2016</inceptionYear>
|
||||||
<modules>
|
<modules>
|
||||||
<module>power-core</module>
|
<module>power-core</module>
|
||||||
@ -72,14 +73,14 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|||||||
</modules>
|
</modules>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<power.version>2.0.0</power.version>
|
<power.version>2.0.1-SNAPSHOT</power.version>
|
||||||
<checkstyle.skip>true</checkstyle.skip><!-- TODO: make false-->
|
<checkstyle.skip>true</checkstyle.skip><!-- TODO: make false-->
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<contributors>
|
<contributors>
|
||||||
<contributor>
|
<contributor>
|
||||||
<name>Robert Vokac</name>
|
<name>Robert Vokac</name>
|
||||||
<email>robertvokac@nanoboot.org</email>
|
<email>robertvokac@robertvokac.com</email>
|
||||||
<roles>
|
<roles>
|
||||||
<role>developer</role>
|
<role>developer</role>
|
||||||
<role>project manager</role>
|
<role>project manager</role>
|
||||||
@ -162,30 +163,29 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|||||||
</dependencies>
|
</dependencies>
|
||||||
</dependencyManagement>
|
</dependencyManagement>
|
||||||
|
|
||||||
|
<repositories>
|
||||||
<repositories>
|
|
||||||
<repository>
|
<repository>
|
||||||
<id>releases</id>
|
<id>robertvokac-releases-repository</id>
|
||||||
<name>nanoboot-releases-repository</name>
|
<name>robertvokac-releases-repository</name>
|
||||||
<url>https://maven.nanoboot.org/releases</url>
|
<url>https://maven.robertvokac.com/releases</url>
|
||||||
</repository>
|
</repository>
|
||||||
<repository>
|
<repository>
|
||||||
<id>snapshots</id>
|
<id>robertvokac-snapshots-repository</id>
|
||||||
<name>nanoboot-snapshots-repository</name>
|
<name>robertvokac-snapshots-repository</name>
|
||||||
<url>https://maven.nanoboot.org/snapshots</url>
|
<url>https://maven.robertvokac.com/snapshots</url>
|
||||||
</repository>
|
</repository>
|
||||||
</repositories>
|
</repositories>
|
||||||
|
|
||||||
<pluginRepositories>
|
<pluginRepositories>
|
||||||
<pluginRepository>
|
<pluginRepository>
|
||||||
<id>releases</id>
|
<id>robertvokac-releases-repository</id>
|
||||||
<name>nanoboot-releases-repository</name>
|
<name>robertvokac-releases-repository</name>
|
||||||
<url>https://maven.nanoboot.org/releases</url>
|
<url>https://maven.robertvokac.com/releases</url>
|
||||||
</pluginRepository>
|
</pluginRepository>
|
||||||
<pluginRepository>
|
<pluginRepository>
|
||||||
<id>snapshots</id>
|
<id>robertvokac-snapshots-repository</id>
|
||||||
<name>nanoboot-snapshots-repository</name>
|
<name>robertvokac-snapshots-repository</name>
|
||||||
<url>https://maven.nanoboot.org/snapshots</url>
|
<url>https://maven.robertvokac.com/snapshots</url>
|
||||||
</pluginRepository>
|
</pluginRepository>
|
||||||
</pluginRepositories>
|
</pluginRepositories>
|
||||||
|
|
||||||
|
@ -1,21 +1,22 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!--
|
<!--
|
||||||
power-framework: Java library with many purposes of usage.
|
power-framework: Java library with many purposes of usage.
|
||||||
Copyright (C) 2016-2022 the original author or authors.
|
Copyright (C) 2016-2024 the original author or authors.
|
||||||
|
|
||||||
This library is free software; you can redistribute it and/or
|
This program is free software: you can redistribute it and/or
|
||||||
modify it under the terms of the GNU Lesser General Public
|
modify it under the terms of the GNU General Public License
|
||||||
License as published by the Free Software Foundation;
|
as published by the Free Software Foundation, either version 3
|
||||||
version 2.1 of the License only.
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
This library is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
Lesser General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU Lesser General Public
|
You should have received a copy of the GNU General Public License
|
||||||
License along with this library; if not, write to the Free Software
|
along with this program. If not, see
|
||||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
<https://www.gnu.org/licenses/> or write to the Free Software
|
||||||
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
-->
|
-->
|
||||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
@ -23,9 +24,9 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>org.nanoboot.powerframework</groupId>
|
<groupId>com.robertvokac.powerframework</groupId>
|
||||||
<artifactId>power-framework</artifactId>
|
<artifactId>power-framework</artifactId>
|
||||||
<version>2.0.0</version>
|
<version>2.0.1-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<artifactId>power-collections</artifactId>
|
<artifactId>power-collections</artifactId>
|
||||||
@ -42,17 +43,17 @@
|
|||||||
<dependencies>
|
<dependencies>
|
||||||
<!-- Power dependencies -->
|
<!-- Power dependencies -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.nanoboot.powerframework</groupId>
|
<groupId>com.robertvokac.powerframework</groupId>
|
||||||
<artifactId>power-core</artifactId>
|
<artifactId>power-core</artifactId>
|
||||||
<version>${power.version}</version>
|
<version>${power.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.nanoboot.powerframework</groupId>
|
<groupId>com.robertvokac.powerframework</groupId>
|
||||||
<artifactId>power-random</artifactId>
|
<artifactId>power-random</artifactId>
|
||||||
<version>${power.version}</version>
|
<version>${power.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.nanoboot.powerframework</groupId>
|
<groupId>com.robertvokac.powerframework</groupId>
|
||||||
<artifactId>power-utils</artifactId>
|
<artifactId>power-utils</artifactId>
|
||||||
<version>${power.version}</version>
|
<version>${power.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
@ -65,7 +66,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>junit</groupId>
|
<groupId>junit</groupId>
|
||||||
<artifactId>junit</artifactId>
|
<artifactId>junit</artifactId>
|
||||||
<version>4.12</version>
|
<version>${junit4.version}</version>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
@ -1,35 +1,36 @@
|
|||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// power-framework: Java library with many purposes of usage.
|
// power-framework: Java library with many purposes of usage.
|
||||||
// Copyright (C) 2016-2022 the original author or authors.
|
// Copyright (C) 2016-2024 the original author or authors.
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or
|
// This program is free software: you can redistribute it and/or
|
||||||
// modify it under the terms of the GNU Lesser General Public
|
// modify it under the terms of the GNU General Public License
|
||||||
// License as published by the Free Software Foundation;
|
// as published by the Free Software Foundation, either version 3
|
||||||
// version 2.1 of the License only.
|
// of the License, or (at your option) any later version.
|
||||||
//
|
//
|
||||||
// This library is distributed in the hope that it will be useful,
|
// This program is distributed in the hope that it will be useful,
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
// Lesser General Public License for more details.
|
// GNU General Public License for more details.
|
||||||
//
|
//
|
||||||
// You should have received a copy of the GNU Lesser General Public
|
// You should have received a copy of the GNU General Public License
|
||||||
// License along with this library; if not, write to the Free Software
|
// along with this program. If not, see
|
||||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
// <https://www.gnu.org/licenses/> or write to the Free Software
|
||||||
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
package org.nanoboot.powerframework.collections;
|
package com.robertvokac.powerframework.collections;
|
||||||
|
|
||||||
import lombok.AccessLevel;
|
import lombok.AccessLevel;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import lombok.Setter;
|
import lombok.Setter;
|
||||||
import org.nanoboot.powerframework.collections.internal.AbstractTreeNode;
|
import com.robertvokac.powerframework.collections.internal.AbstractTreeNode;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param <T>
|
* @param <T>
|
||||||
*
|
*
|
||||||
* @author <a href="mailto:robertvokac@nanoboot.org">Robert Vokac</a>
|
* @author <a href="mailto:robertvokac@robertvokac.com">Robert Vokac</a>
|
||||||
* @since 0.0.0
|
* @since 0.0.0
|
||||||
*/
|
*/
|
||||||
public final class BinaryTreeNode<T> extends AbstractTreeNode<T> {
|
public final class BinaryTreeNode<T> extends AbstractTreeNode<T> {
|
@ -0,0 +1,47 @@
|
|||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
// power-framework: Java library with many purposes of usage.
|
||||||
|
// Copyright (C) 2016-2024 the original author or authors.
|
||||||
|
//
|
||||||
|
// This program is free software: you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU General Public License
|
||||||
|
// as published by the Free Software Foundation, either version 3
|
||||||
|
// of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This program is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with this program. If not, see
|
||||||
|
// <https://www.gnu.org/licenses/> or write to the Free Software
|
||||||
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
package com.robertvokac.powerframework.collections;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* @author <a href="mailto:robertvokac@robertvokac.com">Robert Vokac</a>
|
||||||
|
* @since 0.0.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
public enum BinaryTreeNodeType {
|
||||||
|
/**
|
||||||
|
* Undefined node.
|
||||||
|
*/
|
||||||
|
UNDEFINED,
|
||||||
|
/**
|
||||||
|
* Root node.
|
||||||
|
*/
|
||||||
|
ROOT,
|
||||||
|
/**
|
||||||
|
* Left node.
|
||||||
|
*/
|
||||||
|
LEFT,
|
||||||
|
/**
|
||||||
|
* Right node.
|
||||||
|
*/
|
||||||
|
RIGHT;
|
||||||
|
}
|
@ -0,0 +1,44 @@
|
|||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
// power-framework: Java library with many purposes of usage.
|
||||||
|
// Copyright (C) 2016-2024 the original author or authors.
|
||||||
|
//
|
||||||
|
// This program is free software: you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU General Public License
|
||||||
|
// as published by the Free Software Foundation, either version 3
|
||||||
|
// of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This program is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with this program. If not, see
|
||||||
|
// <https://www.gnu.org/licenses/> or write to the Free Software
|
||||||
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
package com.robertvokac.powerframework.collections;
|
||||||
|
|
||||||
|
import com.robertvokac.powerframework.core.PowerException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* @author <a href="mailto:robertvokac@robertvokac.com">Robert Vokac</a>
|
||||||
|
* @since 0.0.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class CollectionException extends PowerException {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructor
|
||||||
|
*
|
||||||
|
* @param messageIn message describing this exception
|
||||||
|
*/
|
||||||
|
public CollectionException(final String messageIn) {
|
||||||
|
super(messageIn);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,50 @@
|
|||||||
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
// power-framework: Java library with many purposes of usage.
|
||||||
|
// Copyright (C) 2016-2024 the original author or authors.
|
||||||
|
//
|
||||||
|
// This program is free software: you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU General Public License
|
||||||
|
// as published by the Free Software Foundation, either version 3
|
||||||
|
// of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This program is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with this program. If not, see
|
||||||
|
// <https://www.gnu.org/licenses/> or write to the Free Software
|
||||||
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
package com.robertvokac.powerframework.collections;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.ListIterator;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* @author <a href="mailto:robertvokac@robertvokac.com">Robert Vokac</a>
|
||||||
|
* @since 2.0.0
|
||||||
|
*/
|
||||||
|
public class CollectionUtils {
|
||||||
|
|
||||||
|
private CollectionUtils() {
|
||||||
|
//Not meant to be instantiated.
|
||||||
|
}
|
||||||
|
|
||||||
|
public static <T> List<T> reverseList(List<T> list) {
|
||||||
|
|
||||||
|
List<T> reversedList = new ArrayList<>();
|
||||||
|
ListIterator<T> listIterator
|
||||||
|
= list.listIterator(list.size());
|
||||||
|
while (listIterator.hasPrevious()) {
|
||||||
|
T t = listIterator.previous();
|
||||||
|
reversedList.add(t);
|
||||||
|
}
|
||||||
|
return reversedList;
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
@ -1,29 +1,30 @@
|
|||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// power-framework: Java library with many purposes of usage.
|
// power-framework: Java library with many purposes of usage.
|
||||||
// Copyright (C) 2016-2022 the original author or authors.
|
// Copyright (C) 2016-2024 the original author or authors.
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or
|
// This program is free software: you can redistribute it and/or
|
||||||
// modify it under the terms of the GNU Lesser General Public
|
// modify it under the terms of the GNU General Public License
|
||||||
// License as published by the Free Software Foundation;
|
// as published by the Free Software Foundation, either version 3
|
||||||
// version 2.1 of the License only.
|
// of the License, or (at your option) any later version.
|
||||||
//
|
//
|
||||||
// This library is distributed in the hope that it will be useful,
|
// This program is distributed in the hope that it will be useful,
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
// Lesser General Public License for more details.
|
// GNU General Public License for more details.
|
||||||
//
|
//
|
||||||
// You should have received a copy of the GNU Lesser General Public
|
// You should have received a copy of the GNU General Public License
|
||||||
// License along with this library; if not, write to the Free Software
|
// along with this program. If not, see
|
||||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
// <https://www.gnu.org/licenses/> or write to the Free Software
|
||||||
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
package org.nanoboot.powerframework.collections;
|
package com.robertvokac.powerframework.collections;
|
||||||
|
|
||||||
import lombok.AccessLevel;
|
import lombok.AccessLevel;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import lombok.Setter;
|
import lombok.Setter;
|
||||||
import org.nanoboot.powerframework.collections.internal.AbstractLinkedList;
|
import com.robertvokac.powerframework.collections.internal.AbstractLinkedList;
|
||||||
|
|
||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
import java.util.NoSuchElementException;
|
import java.util.NoSuchElementException;
|
||||||
@ -34,7 +35,7 @@ import java.util.NoSuchElementException;
|
|||||||
*
|
*
|
||||||
* @param <E> The type of the values stored in this list.
|
* @param <E> The type of the values stored in this list.
|
||||||
*
|
*
|
||||||
* @author <a href="mailto:robertvokac@nanoboot.org">Robert Vokac</a>
|
* @author <a href="mailto:robertvokac@robertvokac.com">Robert Vokac</a>
|
||||||
* @since 0.0.0
|
* @since 0.0.0
|
||||||
*/
|
*/
|
||||||
|
|
@ -1,28 +1,29 @@
|
|||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// power-framework: Java library with many purposes of usage.
|
// power-framework: Java library with many purposes of usage.
|
||||||
// Copyright (C) 2016-2022 the original author or authors.
|
// Copyright (C) 2016-2024 the original author or authors.
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or
|
// This program is free software: you can redistribute it and/or
|
||||||
// modify it under the terms of the GNU Lesser General Public
|
// modify it under the terms of the GNU General Public License
|
||||||
// License as published by the Free Software Foundation;
|
// as published by the Free Software Foundation, either version 3
|
||||||
// version 2.1 of the License only.
|
// of the License, or (at your option) any later version.
|
||||||
//
|
//
|
||||||
// This library is distributed in the hope that it will be useful,
|
// This program is distributed in the hope that it will be useful,
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
// Lesser General Public License for more details.
|
// GNU General Public License for more details.
|
||||||
//
|
//
|
||||||
// You should have received a copy of the GNU Lesser General Public
|
// You should have received a copy of the GNU General Public License
|
||||||
// License along with this library; if not, write to the Free Software
|
// along with this program. If not, see
|
||||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
// <https://www.gnu.org/licenses/> or write to the Free Software
|
||||||
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
package org.nanoboot.powerframework.collections;
|
package com.robertvokac.powerframework.collections;
|
||||||
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import lombok.Setter;
|
import lombok.Setter;
|
||||||
import org.nanoboot.powerframework.collections.internal.AbstractLinkedListNode;
|
import com.robertvokac.powerframework.collections.internal.AbstractLinkedListNode;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents one node of linked list.
|
* Represents one node of linked list.
|
||||||
@ -33,7 +34,7 @@ import org.nanoboot.powerframework.collections.internal.AbstractLinkedListNode;
|
|||||||
*
|
*
|
||||||
* @param <E> The type of the value this node holds
|
* @param <E> The type of the value this node holds
|
||||||
*
|
*
|
||||||
* @author <a href="mailto:robertvokac@nanoboot.org">Robert Vokac</a>
|
* @author <a href="mailto:robertvokac@robertvokac.com">Robert Vokac</a>
|
||||||
* @since 0.0.0
|
* @since 0.0.0
|
||||||
*/
|
*/
|
||||||
public class DoubleLinkedListNode<E> extends AbstractLinkedListNode<E> {
|
public class DoubleLinkedListNode<E> extends AbstractLinkedListNode<E> {
|
@ -1,28 +1,29 @@
|
|||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// power-framework: Java library with many purposes of usage.
|
// power-framework: Java library with many purposes of usage.
|
||||||
// Copyright (C) 2016-2022 the original author or authors.
|
// Copyright (C) 2016-2024 the original author or authors.
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or
|
// This program is free software: you can redistribute it and/or
|
||||||
// modify it under the terms of the GNU Lesser General Public
|
// modify it under the terms of the GNU General Public License
|
||||||
// License as published by the Free Software Foundation;
|
// as published by the Free Software Foundation, either version 3
|
||||||
// version 2.1 of the License only.
|
// of the License, or (at your option) any later version.
|
||||||
//
|
//
|
||||||
// This library is distributed in the hope that it will be useful,
|
// This program is distributed in the hope that it will be useful,
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
// Lesser General Public License for more details.
|
// GNU General Public License for more details.
|
||||||
//
|
//
|
||||||
// You should have received a copy of the GNU Lesser General Public
|
// You should have received a copy of the GNU General Public License
|
||||||
// License along with this library; if not, write to the Free Software
|
// along with this program. If not, see
|
||||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
// <https://www.gnu.org/licenses/> or write to the Free Software
|
||||||
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
package org.nanoboot.powerframework.collections;
|
package com.robertvokac.powerframework.collections;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* @author <a href="mailto:robertvokac@nanoboot.org">Robert Vokac</a>
|
* @author <a href="mailto:robertvokac@robertvokac.com">Robert Vokac</a>
|
||||||
* @since 0.0.0
|
* @since 0.0.0
|
||||||
*/
|
*/
|
||||||
|
|
@ -1,34 +1,35 @@
|
|||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// power-framework: Java library with many purposes of usage.
|
// power-framework: Java library with many purposes of usage.
|
||||||
// Copyright (C) 2016-2022 the original author or authors.
|
// Copyright (C) 2016-2024 the original author or authors.
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or
|
// This program is free software: you can redistribute it and/or
|
||||||
// modify it under the terms of the GNU Lesser General Public
|
// modify it under the terms of the GNU General Public License
|
||||||
// License as published by the Free Software Foundation;
|
// as published by the Free Software Foundation, either version 3
|
||||||
// version 2.1 of the License only.
|
// of the License, or (at your option) any later version.
|
||||||
//
|
//
|
||||||
// This library is distributed in the hope that it will be useful,
|
// This program is distributed in the hope that it will be useful,
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
// Lesser General Public License for more details.
|
// GNU General Public License for more details.
|
||||||
//
|
//
|
||||||
// You should have received a copy of the GNU Lesser General Public
|
// You should have received a copy of the GNU General Public License
|
||||||
// License along with this library; if not, write to the Free Software
|
// along with this program. If not, see
|
||||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
// <https://www.gnu.org/licenses/> or write to the Free Software
|
||||||
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
package org.nanoboot.powerframework.collections;
|
package com.robertvokac.powerframework.collections;
|
||||||
|
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import org.nanoboot.powerframework.utils.StringUtils;
|
import com.robertvokac.powerframework.utils.StringUtils;
|
||||||
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* @author <a href="mailto:robertvokac@nanoboot.org">Robert Vokac</a>
|
* @author <a href="mailto:robertvokac@robertvokac.com">Robert Vokac</a>
|
||||||
* @since 0.0.0
|
* @since 0.0.0
|
||||||
*/
|
*/
|
||||||
|
|
@ -1,26 +1,27 @@
|
|||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// power-framework: Java library with many purposes of usage.
|
// power-framework: Java library with many purposes of usage.
|
||||||
// Copyright (C) 2016-2022 the original author or authors.
|
// Copyright (C) 2016-2024 the original author or authors.
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or
|
// This program is free software: you can redistribute it and/or
|
||||||
// modify it under the terms of the GNU Lesser General Public
|
// modify it under the terms of the GNU General Public License
|
||||||
// License as published by the Free Software Foundation;
|
// as published by the Free Software Foundation, either version 3
|
||||||
// version 2.1 of the License only.
|
// of the License, or (at your option) any later version.
|
||||||
//
|
//
|
||||||
// This library is distributed in the hope that it will be useful,
|
// This program is distributed in the hope that it will be useful,
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
// Lesser General Public License for more details.
|
// GNU General Public License for more details.
|
||||||
//
|
//
|
||||||
// You should have received a copy of the GNU Lesser General Public
|
// You should have received a copy of the GNU General Public License
|
||||||
// License along with this library; if not, write to the Free Software
|
// along with this program. If not, see
|
||||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
// <https://www.gnu.org/licenses/> or write to the Free Software
|
||||||
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
package org.nanoboot.powerframework.collections;
|
package com.robertvokac.powerframework.collections;
|
||||||
|
|
||||||
import org.nanoboot.powerframework.core.PowerObject;
|
import com.robertvokac.powerframework.core.PowerObject;
|
||||||
|
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
@ -30,7 +31,7 @@ import java.util.NoSuchElementException;
|
|||||||
* Represents map data structure. Values of type T are mapped to String and
|
* Represents map data structure. Values of type T are mapped to String and
|
||||||
* searched by this String.
|
* searched by this String.
|
||||||
*
|
*
|
||||||
* @author <a href="mailto:robertvokac@nanoboot.org">Robert Vokac</a>
|
* @author <a href="mailto:robertvokac@robertvokac.com">Robert Vokac</a>
|
||||||
* @since 0.0.0
|
* @since 0.0.0
|
||||||
* @param <E> the type of items, this map will store.
|
* @param <E> the type of items, this map will store.
|
||||||
*/
|
*/
|
@ -1,24 +1,25 @@
|
|||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// power-framework: Java library with many purposes of usage.
|
// power-framework: Java library with many purposes of usage.
|
||||||
// Copyright (C) 2016-2022 the original author or authors.
|
// Copyright (C) 2016-2024 the original author or authors.
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or
|
// This program is free software: you can redistribute it and/or
|
||||||
// modify it under the terms of the GNU Lesser General Public
|
// modify it under the terms of the GNU General Public License
|
||||||
// License as published by the Free Software Foundation;
|
// as published by the Free Software Foundation, either version 3
|
||||||
// version 2.1 of the License only.
|
// of the License, or (at your option) any later version.
|
||||||
//
|
//
|
||||||
// This library is distributed in the hope that it will be useful,
|
// This program is distributed in the hope that it will be useful,
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
// Lesser General Public License for more details.
|
// GNU General Public License for more details.
|
||||||
//
|
//
|
||||||
// You should have received a copy of the GNU Lesser General Public
|
// You should have received a copy of the GNU General Public License
|
||||||
// License along with this library; if not, write to the Free Software
|
// along with this program. If not, see
|
||||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
// <https://www.gnu.org/licenses/> or write to the Free Software
|
||||||
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
package org.nanoboot.powerframework.collections;
|
package com.robertvokac.powerframework.collections;
|
||||||
|
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
@ -27,7 +28,7 @@ import java.util.ListIterator;
|
|||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* @author <a href="mailto:robertvokac@nanoboot.org">Robert Vokac</a>
|
* @author <a href="mailto:robertvokac@robertvokac.com">Robert Vokac</a>
|
||||||
* @since 0.0.0
|
* @since 0.0.0
|
||||||
*/
|
*/
|
||||||
public class PowerList<E> extends PowerCollection<E> implements List<E> {
|
public class PowerList<E> extends PowerCollection<E> implements List<E> {
|
@ -1,27 +1,28 @@
|
|||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// power-framework: Java library with many purposes of usage.
|
// power-framework: Java library with many purposes of usage.
|
||||||
// Copyright (C) 2016-2022 the original author or authors.
|
// Copyright (C) 2016-2024 the original author or authors.
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or
|
// This program is free software: you can redistribute it and/or
|
||||||
// modify it under the terms of the GNU Lesser General Public
|
// modify it under the terms of the GNU General Public License
|
||||||
// License as published by the Free Software Foundation;
|
// as published by the Free Software Foundation, either version 3
|
||||||
// version 2.1 of the License only.
|
// of the License, or (at your option) any later version.
|
||||||
//
|
//
|
||||||
// This library is distributed in the hope that it will be useful,
|
// This program is distributed in the hope that it will be useful,
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
// Lesser General Public License for more details.
|
// GNU General Public License for more details.
|
||||||
//
|
//
|
||||||
// You should have received a copy of the GNU Lesser General Public
|
// You should have received a copy of the GNU General Public License
|
||||||
// License along with this library; if not, write to the Free Software
|
// along with this program. If not, see
|
||||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
// <https://www.gnu.org/licenses/> or write to the Free Software
|
||||||
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
package org.nanoboot.powerframework.collections;
|
package com.robertvokac.powerframework.collections;
|
||||||
|
|
||||||
import org.nanoboot.powerframework.core.PowerObject;
|
import com.robertvokac.powerframework.core.PowerObject;
|
||||||
import org.nanoboot.powerframework.core.exceptions.NotYetImplementedException;
|
import com.robertvokac.powerframework.core.exceptions.NotYetImplementedException;
|
||||||
|
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
@ -35,7 +36,7 @@ import java.util.Set;
|
|||||||
* Represents map data structure. Values of type T are mapped to String and
|
* Represents map data structure. Values of type T are mapped to String and
|
||||||
* searched by this String.
|
* searched by this String.
|
||||||
*
|
*
|
||||||
* @author <a href="mailto:robertvokac@nanoboot.org">Robert Vokac</a>
|
* @author <a href="mailto:robertvokac@robertvokac.com">Robert Vokac</a>
|
||||||
* @since 0.0.0
|
* @since 0.0.0
|
||||||
* @param <T> the type of items, this map will store.
|
* @param <T> the type of items, this map will store.
|
||||||
*/
|
*/
|
@ -1,30 +1,31 @@
|
|||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// power-framework: Java library with many purposes of usage.
|
// power-framework: Java library with many purposes of usage.
|
||||||
// Copyright (C) 2016-2022 the original author or authors.
|
// Copyright (C) 2016-2024 the original author or authors.
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or
|
// This program is free software: you can redistribute it and/or
|
||||||
// modify it under the terms of the GNU Lesser General Public
|
// modify it under the terms of the GNU General Public License
|
||||||
// License as published by the Free Software Foundation;
|
// as published by the Free Software Foundation, either version 3
|
||||||
// version 2.1 of the License only.
|
// of the License, or (at your option) any later version.
|
||||||
//
|
//
|
||||||
// This library is distributed in the hope that it will be useful,
|
// This program is distributed in the hope that it will be useful,
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
// Lesser General Public License for more details.
|
// GNU General Public License for more details.
|
||||||
//
|
//
|
||||||
// You should have received a copy of the GNU Lesser General Public
|
// You should have received a copy of the GNU General Public License
|
||||||
// License along with this library; if not, write to the Free Software
|
// along with this program. If not, see
|
||||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
// <https://www.gnu.org/licenses/> or write to the Free Software
|
||||||
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
package org.nanoboot.powerframework.collections;
|
package com.robertvokac.powerframework.collections;
|
||||||
import java.util.Queue;
|
import java.util.Queue;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents Queue- linear data structure.
|
* Represents Queue- linear data structure.
|
||||||
*
|
*
|
||||||
* @author <a href="mailto:robertvokac@nanoboot.org">Robert Vokac</a>
|
* @author <a href="mailto:robertvokac@robertvokac.com">Robert Vokac</a>
|
||||||
* @since 0.0.0
|
* @since 0.0.0
|
||||||
* @param <E> object
|
* @param <E> object
|
||||||
*/
|
*/
|
@ -1,27 +1,28 @@
|
|||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// power-framework: Java library with many purposes of usage.
|
// power-framework: Java library with many purposes of usage.
|
||||||
// Copyright (C) 2016-2022 the original author or authors.
|
// Copyright (C) 2016-2024 the original author or authors.
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or
|
// This program is free software: you can redistribute it and/or
|
||||||
// modify it under the terms of the GNU Lesser General Public
|
// modify it under the terms of the GNU General Public License
|
||||||
// License as published by the Free Software Foundation;
|
// as published by the Free Software Foundation, either version 3
|
||||||
// version 2.1 of the License only.
|
// of the License, or (at your option) any later version.
|
||||||
//
|
//
|
||||||
// This library is distributed in the hope that it will be useful,
|
// This program is distributed in the hope that it will be useful,
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
// Lesser General Public License for more details.
|
// GNU General Public License for more details.
|
||||||
//
|
//
|
||||||
// You should have received a copy of the GNU Lesser General Public
|
// You should have received a copy of the GNU General Public License
|
||||||
// License along with this library; if not, write to the Free Software
|
// along with this program. If not, see
|
||||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
// <https://www.gnu.org/licenses/> or write to the Free Software
|
||||||
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
package org.nanoboot.powerframework.collections;
|
package com.robertvokac.powerframework.collections;
|
||||||
|
|
||||||
import org.nanoboot.powerframework.collections.arrays.ObjectArray;
|
import com.robertvokac.powerframework.collections.arrays.ObjectArray;
|
||||||
import org.nanoboot.powerframework.random.generators.RandomGenerator;
|
import com.robertvokac.powerframework.random.generators.RandomGenerator;
|
||||||
|
|
||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
import java.util.NoSuchElementException;
|
import java.util.NoSuchElementException;
|
||||||
@ -34,7 +35,7 @@ import java.util.Set;
|
|||||||
*
|
*
|
||||||
* @param <E> element type
|
* @param <E> element type
|
||||||
*
|
*
|
||||||
* @author <a href="mailto:robertvokac@nanoboot.org">Robert Vokac</a>
|
* @author <a href="mailto:robertvokac@robertvokac.com">Robert Vokac</a>
|
||||||
* @since 0.0.0
|
* @since 0.0.0
|
||||||
*/
|
*/
|
||||||
public class PowerSet<E> extends PowerCollection<E> implements Set<E> {
|
public class PowerSet<E> extends PowerCollection<E> implements Set<E> {
|
@ -1,29 +1,30 @@
|
|||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// power-framework: Java library with many purposes of usage.
|
// power-framework: Java library with many purposes of usage.
|
||||||
// Copyright (C) 2016-2022 the original author or authors.
|
// Copyright (C) 2016-2024 the original author or authors.
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or
|
// This program is free software: you can redistribute it and/or
|
||||||
// modify it under the terms of the GNU Lesser General Public
|
// modify it under the terms of the GNU General Public License
|
||||||
// License as published by the Free Software Foundation;
|
// as published by the Free Software Foundation, either version 3
|
||||||
// version 2.1 of the License only.
|
// of the License, or (at your option) any later version.
|
||||||
//
|
//
|
||||||
// This library is distributed in the hope that it will be useful,
|
// This program is distributed in the hope that it will be useful,
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
// Lesser General Public License for more details.
|
// GNU General Public License for more details.
|
||||||
//
|
//
|
||||||
// You should have received a copy of the GNU Lesser General Public
|
// You should have received a copy of the GNU General Public License
|
||||||
// License along with this library; if not, write to the Free Software
|
// along with this program. If not, see
|
||||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
// <https://www.gnu.org/licenses/> or write to the Free Software
|
||||||
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
package org.nanoboot.powerframework.collections;
|
package com.robertvokac.powerframework.collections;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents Stack- linear data structure.
|
* Represents Stack- linear data structure.
|
||||||
*
|
*
|
||||||
* @author <a href="mailto:robertvokac@nanoboot.org">Robert Vokac</a>
|
* @author <a href="mailto:robertvokac@robertvokac.com">Robert Vokac</a>
|
||||||
* @since 0.0.0
|
* @since 0.0.0
|
||||||
* @param <E> object
|
* @param <E> object
|
||||||
*/
|
*/
|
@ -1,33 +1,34 @@
|
|||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// power-framework: Java library with many purposes of usage.
|
// power-framework: Java library with many purposes of usage.
|
||||||
// Copyright (C) 2016-2022 the original author or authors.
|
// Copyright (C) 2016-2024 the original author or authors.
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or
|
// This program is free software: you can redistribute it and/or
|
||||||
// modify it under the terms of the GNU Lesser General Public
|
// modify it under the terms of the GNU General Public License
|
||||||
// License as published by the Free Software Foundation;
|
// as published by the Free Software Foundation, either version 3
|
||||||
// version 2.1 of the License only.
|
// of the License, or (at your option) any later version.
|
||||||
//
|
//
|
||||||
// This library is distributed in the hope that it will be useful,
|
// This program is distributed in the hope that it will be useful,
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
// Lesser General Public License for more details.
|
// GNU General Public License for more details.
|
||||||
//
|
//
|
||||||
// You should have received a copy of the GNU Lesser General Public
|
// You should have received a copy of the GNU General Public License
|
||||||
// License along with this library; if not, write to the Free Software
|
// along with this program. If not, see
|
||||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
// <https://www.gnu.org/licenses/> or write to the Free Software
|
||||||
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
package org.nanoboot.powerframework.collections;
|
package com.robertvokac.powerframework.collections;
|
||||||
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import org.nanoboot.powerframework.core.PowerObject;
|
import com.robertvokac.powerframework.core.PowerObject;
|
||||||
import org.nanoboot.powerframework.utils.annotations.InProgress;
|
import com.robertvokac.powerframework.utils.annotations.InProgress;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* @author <a href="mailto:robertvokac@nanoboot.org">Robert Vokac</a>
|
* @author <a href="mailto:robertvokac@robertvokac.com">Robert Vokac</a>
|
||||||
* @since 0.0.0
|
* @since 0.0.0
|
||||||
*/
|
*/
|
||||||
@InProgress
|
@InProgress
|
@ -1,30 +1,31 @@
|
|||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// power-framework: Java library with many purposes of usage.
|
// power-framework: Java library with many purposes of usage.
|
||||||
// Copyright (C) 2016-2022 the original author or authors.
|
// Copyright (C) 2016-2024 the original author or authors.
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or
|
// This program is free software: you can redistribute it and/or
|
||||||
// modify it under the terms of the GNU Lesser General Public
|
// modify it under the terms of the GNU General Public License
|
||||||
// License as published by the Free Software Foundation;
|
// as published by the Free Software Foundation, either version 3
|
||||||
// version 2.1 of the License only.
|
// of the License, or (at your option) any later version.
|
||||||
//
|
//
|
||||||
// This library is distributed in the hope that it will be useful,
|
// This program is distributed in the hope that it will be useful,
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
// Lesser General Public License for more details.
|
// GNU General Public License for more details.
|
||||||
//
|
//
|
||||||
// You should have received a copy of the GNU Lesser General Public
|
// You should have received a copy of the GNU General Public License
|
||||||
// License along with this library; if not, write to the Free Software
|
// along with this program. If not, see
|
||||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
// <https://www.gnu.org/licenses/> or write to the Free Software
|
||||||
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
package org.nanoboot.powerframework.collections;
|
package com.robertvokac.powerframework.collections;
|
||||||
|
|
||||||
import lombok.AccessLevel;
|
import lombok.AccessLevel;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import lombok.Setter;
|
import lombok.Setter;
|
||||||
import org.nanoboot.powerframework.collections.internal.AbstractLinkedList;
|
import com.robertvokac.powerframework.collections.internal.AbstractLinkedList;
|
||||||
import org.nanoboot.powerframework.core.exceptions.NotYetImplementedException;
|
import com.robertvokac.powerframework.core.exceptions.NotYetImplementedException;
|
||||||
|
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
@ -33,7 +34,7 @@ import java.util.NoSuchElementException;
|
|||||||
* Represents linked list data structure.
|
* Represents linked list data structure.
|
||||||
*
|
*
|
||||||
* @param <E> The type of the values stored in this list.
|
* @param <E> The type of the values stored in this list.
|
||||||
* @author <a href="mailto:robertvokac@nanoboot.org">Robert Vokac</a>
|
* @author <a href="mailto:robertvokac@robertvokac.com">Robert Vokac</a>
|
||||||
* @since 0.0.0
|
* @since 0.0.0
|
||||||
*/
|
*/
|
||||||
public class SingleLinkedList<E> extends AbstractLinkedList<E>
|
public class SingleLinkedList<E> extends AbstractLinkedList<E>
|
@ -1,28 +1,29 @@
|
|||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// power-framework: Java library with many purposes of usage.
|
// power-framework: Java library with many purposes of usage.
|
||||||
// Copyright (C) 2016-2022 the original author or authors.
|
// Copyright (C) 2016-2024 the original author or authors.
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or
|
// This program is free software: you can redistribute it and/or
|
||||||
// modify it under the terms of the GNU Lesser General Public
|
// modify it under the terms of the GNU General Public License
|
||||||
// License as published by the Free Software Foundation;
|
// as published by the Free Software Foundation, either version 3
|
||||||
// version 2.1 of the License only.
|
// of the License, or (at your option) any later version.
|
||||||
//
|
//
|
||||||
// This library is distributed in the hope that it will be useful,
|
// This program is distributed in the hope that it will be useful,
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
// Lesser General Public License for more details.
|
// GNU General Public License for more details.
|
||||||
//
|
//
|
||||||
// You should have received a copy of the GNU Lesser General Public
|
// You should have received a copy of the GNU General Public License
|
||||||
// License along with this library; if not, write to the Free Software
|
// along with this program. If not, see
|
||||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
// <https://www.gnu.org/licenses/> or write to the Free Software
|
||||||
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
package org.nanoboot.powerframework.collections;
|
package com.robertvokac.powerframework.collections;
|
||||||
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import lombok.Setter;
|
import lombok.Setter;
|
||||||
import org.nanoboot.powerframework.collections.internal.AbstractLinkedListNode;
|
import com.robertvokac.powerframework.collections.internal.AbstractLinkedListNode;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents one node of linked list.
|
* Represents one node of linked list.
|
||||||
@ -31,7 +32,7 @@ import org.nanoboot.powerframework.collections.internal.AbstractLinkedListNode;
|
|||||||
*
|
*
|
||||||
* These nodes are linked (forward direction only).
|
* These nodes are linked (forward direction only).
|
||||||
*
|
*
|
||||||
* @author <a href="mailto:robertvokac@nanoboot.org">Robert Vokac</a>
|
* @author <a href="mailto:robertvokac@robertvokac.com">Robert Vokac</a>
|
||||||
* @since 0.0.0
|
* @since 0.0.0
|
||||||
* @param <E> The type of the value this node holds
|
* @param <E> The type of the value this node holds
|
||||||
*/
|
*/
|
@ -1,28 +1,29 @@
|
|||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// power-framework: Java library with many purposes of usage.
|
// power-framework: Java library with many purposes of usage.
|
||||||
// Copyright (C) 2016-2022 the original author or authors.
|
// Copyright (C) 2016-2024 the original author or authors.
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or
|
// This program is free software: you can redistribute it and/or
|
||||||
// modify it under the terms of the GNU Lesser General Public
|
// modify it under the terms of the GNU General Public License
|
||||||
// License as published by the Free Software Foundation;
|
// as published by the Free Software Foundation, either version 3
|
||||||
// version 2.1 of the License only.
|
// of the License, or (at your option) any later version.
|
||||||
//
|
//
|
||||||
// This library is distributed in the hope that it will be useful,
|
// This program is distributed in the hope that it will be useful,
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
// Lesser General Public License for more details.
|
// GNU General Public License for more details.
|
||||||
//
|
//
|
||||||
// You should have received a copy of the GNU Lesser General Public
|
// You should have received a copy of the GNU General Public License
|
||||||
// License along with this library; if not, write to the Free Software
|
// along with this program. If not, see
|
||||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
// <https://www.gnu.org/licenses/> or write to the Free Software
|
||||||
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
package org.nanoboot.powerframework.collections;
|
package com.robertvokac.powerframework.collections;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* @author <a href="mailto:robertvokac@nanoboot.org">Robert Vokac</a>
|
* @author <a href="mailto:robertvokac@robertvokac.com">Robert Vokac</a>
|
||||||
* @since 0.0.0
|
* @since 0.0.0
|
||||||
*/
|
*/
|
||||||
public interface StackI<E> {
|
public interface StackI<E> {
|
@ -0,0 +1,63 @@
|
|||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
// power-framework: Java library with many purposes of usage.
|
||||||
|
// Copyright (C) 2016-2024 the original author or authors.
|
||||||
|
//
|
||||||
|
// This program is free software: you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU General Public License
|
||||||
|
// as published by the Free Software Foundation, either version 3
|
||||||
|
// of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This program is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with this program. If not, see
|
||||||
|
// <https://www.gnu.org/licenses/> or write to the Free Software
|
||||||
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
package com.robertvokac.powerframework.collections;
|
||||||
|
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.Setter;
|
||||||
|
import com.robertvokac.powerframework.core.PowerObject;
|
||||||
|
import com.robertvokac.powerframework.utils.annotations.ToRemove;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Here goes the description of this class.
|
||||||
|
*
|
||||||
|
* @author <a href="mailto:robertvokac@robertvokac.com">Robert Vokac</a>
|
||||||
|
* @since 0.0.0
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
@ToRemove
|
||||||
|
public class Table extends PowerObject {
|
||||||
|
/**
|
||||||
|
* Name of the table.
|
||||||
|
*/
|
||||||
|
@Getter
|
||||||
|
@Setter
|
||||||
|
private String name;
|
||||||
|
/**
|
||||||
|
* Constructor.
|
||||||
|
*
|
||||||
|
* Not meant to be instantiated.
|
||||||
|
*/
|
||||||
|
private Table() {
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructor.
|
||||||
|
*
|
||||||
|
* Constructor description
|
||||||
|
*
|
||||||
|
* @param nameIn name
|
||||||
|
*/
|
||||||
|
public Table(final String nameIn) {
|
||||||
|
this.setName(nameIn);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,57 @@
|
|||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
// power-framework: Java library with many purposes of usage.
|
||||||
|
// Copyright (C) 2016-2024 the original author or authors.
|
||||||
|
//
|
||||||
|
// This program is free software: you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU General Public License
|
||||||
|
// as published by the Free Software Foundation, either version 3
|
||||||
|
// of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This program is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with this program. If not, see
|
||||||
|
// <https://www.gnu.org/licenses/> or write to the Free Software
|
||||||
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
package com.robertvokac.powerframework.collections;
|
||||||
|
|
||||||
|
|
||||||
|
import lombok.Getter;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @param <T> element type
|
||||||
|
*
|
||||||
|
* @author <a href="mailto:robertvokac@robertvokac.com">Robert Vokac</a>
|
||||||
|
* @since 0.0.0
|
||||||
|
*/
|
||||||
|
public class Tree<T> {
|
||||||
|
/**
|
||||||
|
* Root.
|
||||||
|
*/
|
||||||
|
@Getter
|
||||||
|
private final TreeNode<T> root;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructor.
|
||||||
|
*/
|
||||||
|
public Tree() {
|
||||||
|
root = new TreeNode<>();
|
||||||
|
root.setName("root");
|
||||||
|
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Constructor.
|
||||||
|
* @param rootIn root node
|
||||||
|
*/
|
||||||
|
public Tree(final TreeNode<T> rootIn) {
|
||||||
|
this.root = rootIn;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -1,33 +1,34 @@
|
|||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// power-framework: Java library with many purposes of usage.
|
// power-framework: Java library with many purposes of usage.
|
||||||
// Copyright (C) 2016-2022 the original author or authors.
|
// Copyright (C) 2016-2024 the original author or authors.
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or
|
// This program is free software: you can redistribute it and/or
|
||||||
// modify it under the terms of the GNU Lesser General Public
|
// modify it under the terms of the GNU General Public License
|
||||||
// License as published by the Free Software Foundation;
|
// as published by the Free Software Foundation, either version 3
|
||||||
// version 2.1 of the License only.
|
// of the License, or (at your option) any later version.
|
||||||
//
|
//
|
||||||
// This library is distributed in the hope that it will be useful,
|
// This program is distributed in the hope that it will be useful,
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
// Lesser General Public License for more details.
|
// GNU General Public License for more details.
|
||||||
//
|
//
|
||||||
// You should have received a copy of the GNU Lesser General Public
|
// You should have received a copy of the GNU General Public License
|
||||||
// License along with this library; if not, write to the Free Software
|
// along with this program. If not, see
|
||||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
// <https://www.gnu.org/licenses/> or write to the Free Software
|
||||||
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
package org.nanoboot.powerframework.collections;
|
package com.robertvokac.powerframework.collections;
|
||||||
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import lombok.Setter;
|
import lombok.Setter;
|
||||||
import org.nanoboot.powerframework.collections.internal.AbstractTreeNode;
|
import com.robertvokac.powerframework.collections.internal.AbstractTreeNode;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* @author <a href="mailto:robertvokac@nanoboot.org">Robert Vokac</a>
|
* @author <a href="mailto:robertvokac@robertvokac.com">Robert Vokac</a>
|
||||||
* @since 0.0.0
|
* @since 0.0.0
|
||||||
* @param <T>
|
* @param <T>
|
||||||
*/
|
*/
|
@ -1,24 +1,25 @@
|
|||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// power-framework: Java library with many purposes of usage.
|
// power-framework: Java library with many purposes of usage.
|
||||||
// Copyright (C) 2016-2022 the original author or authors.
|
// Copyright (C) 2016-2024 the original author or authors.
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or
|
// This program is free software: you can redistribute it and/or
|
||||||
// modify it under the terms of the GNU Lesser General Public
|
// modify it under the terms of the GNU General Public License
|
||||||
// License as published by the Free Software Foundation;
|
// as published by the Free Software Foundation, either version 3
|
||||||
// version 2.1 of the License only.
|
// of the License, or (at your option) any later version.
|
||||||
//
|
//
|
||||||
// This library is distributed in the hope that it will be useful,
|
// This program is distributed in the hope that it will be useful,
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
// Lesser General Public License for more details.
|
// GNU General Public License for more details.
|
||||||
//
|
//
|
||||||
// You should have received a copy of the GNU Lesser General Public
|
// You should have received a copy of the GNU General Public License
|
||||||
// License along with this library; if not, write to the Free Software
|
// along with this program. If not, see
|
||||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
// <https://www.gnu.org/licenses/> or write to the Free Software
|
||||||
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
package org.nanoboot.powerframework.collections.arrays;
|
package com.robertvokac.powerframework.collections.arrays;
|
||||||
|
|
||||||
//ObjectArray<ObjectArray<ObjectArray<ObjectArray<Human>>>> array3=new ObjectArray<ObjectArray<ObjectArray<ObjectArray<Human>>>>(
|
//ObjectArray<ObjectArray<ObjectArray<ObjectArray<Human>>>> array3=new ObjectArray<ObjectArray<ObjectArray<ObjectArray<Human>>>>(
|
||||||
|
|
||||||
@ -28,7 +29,7 @@ import java.util.*;
|
|||||||
* @param <C> if the ArrayType is not Object, this parameter is ignored. In
|
* @param <C> if the ArrayType is not Object, this parameter is ignored. In
|
||||||
* this case use Object as parameter.
|
* this case use Object as parameter.
|
||||||
*
|
*
|
||||||
* @author <a href="mailto:robertvokac@nanoboot.org">Robert Vokac</a>
|
* @author <a href="mailto:robertvokac@robertvokac.com">Robert Vokac</a>
|
||||||
* @since 0.0.0
|
* @since 0.0.0
|
||||||
*/
|
*/
|
||||||
public class Array<C> implements Iterable<C> {
|
public class Array<C> implements Iterable<C> {
|
@ -0,0 +1,39 @@
|
|||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
// power-framework: Java library with many purposes of usage.
|
||||||
|
// Copyright (C) 2016-2024 the original author or authors.
|
||||||
|
//
|
||||||
|
// This program is free software: you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU General Public License
|
||||||
|
// as published by the Free Software Foundation, either version 3
|
||||||
|
// of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This program is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with this program. If not, see
|
||||||
|
// <https://www.gnu.org/licenses/> or write to the Free Software
|
||||||
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
package com.robertvokac.powerframework.collections.arrays;
|
||||||
|
|
||||||
|
import com.robertvokac.powerframework.collections.CollectionException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* @author <a href="mailto:robertvokac@robertvokac.com">Robert Vokac</a>
|
||||||
|
* @since 0.0.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class ArrayException extends CollectionException {
|
||||||
|
|
||||||
|
public ArrayException(String message) {
|
||||||
|
super(message);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,44 @@
|
|||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
// power-framework: Java library with many purposes of usage.
|
||||||
|
// Copyright (C) 2016-2024 the original author or authors.
|
||||||
|
//
|
||||||
|
// This program is free software: you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU General Public License
|
||||||
|
// as published by the Free Software Foundation, either version 3
|
||||||
|
// of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This program is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with this program. If not, see
|
||||||
|
// <https://www.gnu.org/licenses/> or write to the Free Software
|
||||||
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
package com.robertvokac.powerframework.collections.arrays;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* @author <a href="mailto:robertvokac@robertvokac.com">Robert Vokac</a>
|
||||||
|
* @since 0.0.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
public enum ArrayType {
|
||||||
|
//TODO CHAR- char array
|
||||||
|
|
||||||
|
BOOLEAN,
|
||||||
|
BYTE,
|
||||||
|
CHAR,
|
||||||
|
SHORT,
|
||||||
|
INT,
|
||||||
|
LONG,
|
||||||
|
FLOAT,
|
||||||
|
DOUBLE,
|
||||||
|
OBJECT;
|
||||||
|
|
||||||
|
}
|
@ -1,30 +1,31 @@
|
|||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// power-framework: Java library with many purposes of usage.
|
// power-framework: Java library with many purposes of usage.
|
||||||
// Copyright (C) 2016-2022 the original author or authors.
|
// Copyright (C) 2016-2024 the original author or authors.
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or
|
// This program is free software: you can redistribute it and/or
|
||||||
// modify it under the terms of the GNU Lesser General Public
|
// modify it under the terms of the GNU General Public License
|
||||||
// License as published by the Free Software Foundation;
|
// as published by the Free Software Foundation, either version 3
|
||||||
// version 2.1 of the License only.
|
// of the License, or (at your option) any later version.
|
||||||
//
|
//
|
||||||
// This library is distributed in the hope that it will be useful,
|
// This program is distributed in the hope that it will be useful,
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
// Lesser General Public License for more details.
|
// GNU General Public License for more details.
|
||||||
//
|
//
|
||||||
// You should have received a copy of the GNU Lesser General Public
|
// You should have received a copy of the GNU General Public License
|
||||||
// License along with this library; if not, write to the Free Software
|
// along with this program. If not, see
|
||||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
// <https://www.gnu.org/licenses/> or write to the Free Software
|
||||||
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
package org.nanoboot.powerframework.collections.arrays;
|
package com.robertvokac.powerframework.collections.arrays;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* There will be the choice to select the starting index:0 will be default
|
* There will be the choice to select the starting index:0 will be default
|
||||||
* (maybe), but 1 or something else will be possible.
|
* (maybe), but 1 or something else will be possible.
|
||||||
*
|
*
|
||||||
* @author <a href="mailto:robertvokac@nanoboot.org">Robert Vokac</a>
|
* @author <a href="mailto:robertvokac@robertvokac.com">Robert Vokac</a>
|
||||||
* @since 0.0.0
|
* @since 0.0.0
|
||||||
*/
|
*/
|
||||||
public class ByteArray {
|
public class ByteArray {
|
@ -1,24 +1,25 @@
|
|||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// power-framework: Java library with many purposes of usage.
|
// power-framework: Java library with many purposes of usage.
|
||||||
// Copyright (C) 2016-2022 the original author or authors.
|
// Copyright (C) 2016-2024 the original author or authors.
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or
|
// This program is free software: you can redistribute it and/or
|
||||||
// modify it under the terms of the GNU Lesser General Public
|
// modify it under the terms of the GNU General Public License
|
||||||
// License as published by the Free Software Foundation;
|
// as published by the Free Software Foundation, either version 3
|
||||||
// version 2.1 of the License only.
|
// of the License, or (at your option) any later version.
|
||||||
//
|
//
|
||||||
// This library is distributed in the hope that it will be useful,
|
// This program is distributed in the hope that it will be useful,
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
// Lesser General Public License for more details.
|
// GNU General Public License for more details.
|
||||||
//
|
//
|
||||||
// You should have received a copy of the GNU Lesser General Public
|
// You should have received a copy of the GNU General Public License
|
||||||
// License along with this library; if not, write to the Free Software
|
// along with this program. If not, see
|
||||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
// <https://www.gnu.org/licenses/> or write to the Free Software
|
||||||
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
package org.nanoboot.powerframework.collections.arrays;
|
package com.robertvokac.powerframework.collections.arrays;
|
||||||
|
|
||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
|
|
||||||
@ -26,7 +27,7 @@ import java.util.Iterator;
|
|||||||
* There will be the choice to select the starting index:0 will be default
|
* There will be the choice to select the starting index:0 will be default
|
||||||
* (maybe), but 1 or something else will be possible.
|
* (maybe), but 1 or something else will be possible.
|
||||||
*
|
*
|
||||||
* @author <a href="mailto:robertvokac@nanoboot.org">Robert Vokac</a>
|
* @author <a href="mailto:robertvokac@robertvokac.com">Robert Vokac</a>
|
||||||
* @since 0.0.0
|
* @since 0.0.0
|
||||||
*/
|
*/
|
||||||
public class IntArray implements Iterable<Integer> {
|
public class IntArray implements Iterable<Integer> {
|
@ -1,30 +1,31 @@
|
|||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// power-framework: Java library with many purposes of usage.
|
// power-framework: Java library with many purposes of usage.
|
||||||
// Copyright (C) 2016-2022 the original author or authors.
|
// Copyright (C) 2016-2024 the original author or authors.
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or
|
// This program is free software: you can redistribute it and/or
|
||||||
// modify it under the terms of the GNU Lesser General Public
|
// modify it under the terms of the GNU General Public License
|
||||||
// License as published by the Free Software Foundation;
|
// as published by the Free Software Foundation, either version 3
|
||||||
// version 2.1 of the License only.
|
// of the License, or (at your option) any later version.
|
||||||
//
|
//
|
||||||
// This library is distributed in the hope that it will be useful,
|
// This program is distributed in the hope that it will be useful,
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
// Lesser General Public License for more details.
|
// GNU General Public License for more details.
|
||||||
//
|
//
|
||||||
// You should have received a copy of the GNU Lesser General Public
|
// You should have received a copy of the GNU General Public License
|
||||||
// License along with this library; if not, write to the Free Software
|
// along with this program. If not, see
|
||||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
// <https://www.gnu.org/licenses/> or write to the Free Software
|
||||||
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
package org.nanoboot.powerframework.collections.arrays;
|
package com.robertvokac.powerframework.collections.arrays;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* There will be the choice to select the starting index:0 will be default
|
* There will be the choice to select the starting index:0 will be default
|
||||||
* (maybe), but 1 or something else will be possible.
|
* (maybe), but 1 or something else will be possible.
|
||||||
*
|
*
|
||||||
* @author <a href="mailto:robertvokac@nanoboot.org">Robert Vokac</a>
|
* @author <a href="mailto:robertvokac@robertvokac.com">Robert Vokac</a>
|
||||||
* @since 0.0.0
|
* @since 0.0.0
|
||||||
* @param <C>
|
* @param <C>
|
||||||
*/
|
*/
|
@ -0,0 +1,28 @@
|
|||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
// power-framework: Java library with many purposes of usage.
|
||||||
|
// Copyright (C) 2016-2024 the original author or authors.
|
||||||
|
//
|
||||||
|
// This program is free software: you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU General Public License
|
||||||
|
// as published by the Free Software Foundation, either version 3
|
||||||
|
// of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This program is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with this program. If not, see
|
||||||
|
// <https://www.gnu.org/licenses/> or write to the Free Software
|
||||||
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Classes for arrays (index starting from 1, not 0).
|
||||||
|
*
|
||||||
|
* @author <a href="mailto:robertvokac@robertvokac.com">Robert Vokac</a>
|
||||||
|
* @since 0.0.0
|
||||||
|
*/
|
||||||
|
package com.robertvokac.powerframework.collections.arrays;
|
@ -1,30 +1,31 @@
|
|||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// power-framework: Java library with many purposes of usage.
|
// power-framework: Java library with many purposes of usage.
|
||||||
// Copyright (C) 2016-2022 the original author or authors.
|
// Copyright (C) 2016-2024 the original author or authors.
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or
|
// This program is free software: you can redistribute it and/or
|
||||||
// modify it under the terms of the GNU Lesser General Public
|
// modify it under the terms of the GNU General Public License
|
||||||
// License as published by the Free Software Foundation;
|
// as published by the Free Software Foundation, either version 3
|
||||||
// version 2.1 of the License only.
|
// of the License, or (at your option) any later version.
|
||||||
//
|
//
|
||||||
// This library is distributed in the hope that it will be useful,
|
// This program is distributed in the hope that it will be useful,
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
// Lesser General Public License for more details.
|
// GNU General Public License for more details.
|
||||||
//
|
//
|
||||||
// You should have received a copy of the GNU Lesser General Public
|
// You should have received a copy of the GNU General Public License
|
||||||
// License along with this library; if not, write to the Free Software
|
// along with this program. If not, see
|
||||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
// <https://www.gnu.org/licenses/> or write to the Free Software
|
||||||
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
package org.nanoboot.powerframework.collections.buffer;
|
package com.robertvokac.powerframework.collections.buffer;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Here goes the description of this class.
|
* Here goes the description of this class.
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* @author <a href="mailto:robertvokac@nanoboot.org">Robert Vokac</a>
|
* @author <a href="mailto:robertvokac@robertvokac.com">Robert Vokac</a>
|
||||||
* @since 0.0.0
|
* @since 0.0.0
|
||||||
*/
|
*/
|
||||||
public class CharBuffer {
|
public class CharBuffer {
|
@ -1,32 +1,33 @@
|
|||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// power-framework: Java library with many purposes of usage.
|
// power-framework: Java library with many purposes of usage.
|
||||||
// Copyright (C) 2016-2022 the original author or authors.
|
// Copyright (C) 2016-2024 the original author or authors.
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or
|
// This program is free software: you can redistribute it and/or
|
||||||
// modify it under the terms of the GNU Lesser General Public
|
// modify it under the terms of the GNU General Public License
|
||||||
// License as published by the Free Software Foundation;
|
// as published by the Free Software Foundation, either version 3
|
||||||
// version 2.1 of the License only.
|
// of the License, or (at your option) any later version.
|
||||||
//
|
//
|
||||||
// This library is distributed in the hope that it will be useful,
|
// This program is distributed in the hope that it will be useful,
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
// Lesser General Public License for more details.
|
// GNU General Public License for more details.
|
||||||
//
|
//
|
||||||
// You should have received a copy of the GNU Lesser General Public
|
// You should have received a copy of the GNU General Public License
|
||||||
// License along with this library; if not, write to the Free Software
|
// along with this program. If not, see
|
||||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
// <https://www.gnu.org/licenses/> or write to the Free Software
|
||||||
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
package org.nanoboot.powerframework.collections.internal;
|
package com.robertvokac.powerframework.collections.internal;
|
||||||
|
|
||||||
import org.nanoboot.powerframework.collections.arrays.ObjectArray;
|
import com.robertvokac.powerframework.collections.arrays.ObjectArray;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents linked list data structure.
|
* Represents linked list data structure.
|
||||||
* @param <E> element type
|
* @param <E> element type
|
||||||
*
|
*
|
||||||
* @author <a href="mailto:robertvokac@nanoboot.org">Robert Vokac</a>
|
* @author <a href="mailto:robertvokac@robertvokac.com">Robert Vokac</a>
|
||||||
* @since 0.0.0
|
* @since 0.0.0
|
||||||
*/
|
*/
|
||||||
public abstract class AbstractLinkedList<E> implements Iterable<E> {
|
public abstract class AbstractLinkedList<E> implements Iterable<E> {
|
@ -0,0 +1,46 @@
|
|||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
// power-framework: Java library with many purposes of usage.
|
||||||
|
// Copyright (C) 2016-2024 the original author or authors.
|
||||||
|
//
|
||||||
|
// This program is free software: you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU General Public License
|
||||||
|
// as published by the Free Software Foundation, either version 3
|
||||||
|
// of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This program is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with this program. If not, see
|
||||||
|
// <https://www.gnu.org/licenses/> or write to the Free Software
|
||||||
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
package com.robertvokac.powerframework.collections.internal;
|
||||||
|
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.Setter;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Represents one node of linked list.
|
||||||
|
*
|
||||||
|
* It is used to store a value based on the T.
|
||||||
|
*
|
||||||
|
* These nodes are linked (forward direction only).
|
||||||
|
*
|
||||||
|
* @param <E> The type of the value this node holds
|
||||||
|
*
|
||||||
|
* @author <a href="mailto:robertvokac@robertvokac.com">Robert Vokac</a>
|
||||||
|
* @since 0.0.0
|
||||||
|
*/
|
||||||
|
public abstract class AbstractLinkedListNode<E> {
|
||||||
|
/**
|
||||||
|
* Value.
|
||||||
|
*/
|
||||||
|
@Getter
|
||||||
|
@Setter
|
||||||
|
private E value;
|
||||||
|
}
|
@ -0,0 +1,54 @@
|
|||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
// power-framework: Java library with many purposes of usage.
|
||||||
|
// Copyright (C) 2016-2024 the original author or authors.
|
||||||
|
//
|
||||||
|
// This program is free software: you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU General Public License
|
||||||
|
// as published by the Free Software Foundation, either version 3
|
||||||
|
// of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This program is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with this program. If not, see
|
||||||
|
// <https://www.gnu.org/licenses/> or write to the Free Software
|
||||||
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
package com.robertvokac.powerframework.collections.internal;
|
||||||
|
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.Setter;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @param <T>
|
||||||
|
*
|
||||||
|
* @author <a href="mailto:robertvokac@robertvokac.com">Robert Vokac</a>
|
||||||
|
* @since 0.0.0
|
||||||
|
*/
|
||||||
|
public abstract class AbstractTreeNode<T> {
|
||||||
|
/**
|
||||||
|
* Parent node.
|
||||||
|
*/
|
||||||
|
@Getter
|
||||||
|
@Setter
|
||||||
|
private AbstractTreeNode<T> parent = null;
|
||||||
|
/**
|
||||||
|
* The value to be hold.
|
||||||
|
*/
|
||||||
|
@Getter
|
||||||
|
@Setter
|
||||||
|
private T value;
|
||||||
|
/**
|
||||||
|
* Name of the node.
|
||||||
|
*/
|
||||||
|
@Getter
|
||||||
|
@Setter
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,28 @@
|
|||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
// power-framework: Java library with many purposes of usage.
|
||||||
|
// Copyright (C) 2016-2024 the original author or authors.
|
||||||
|
//
|
||||||
|
// This program is free software: you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU General Public License
|
||||||
|
// as published by the Free Software Foundation, either version 3
|
||||||
|
// of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This program is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with this program. If not, see
|
||||||
|
// <https://www.gnu.org/licenses/> or write to the Free Software
|
||||||
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Internal classes.
|
||||||
|
*
|
||||||
|
* @author <a href="mailto:robertvokac@robertvokac.com">Robert Vokac</a>
|
||||||
|
* @since 0.0.0
|
||||||
|
*/
|
||||||
|
package com.robertvokac.powerframework.collections.internal;
|
@ -0,0 +1,28 @@
|
|||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
// power-framework: Java library with many purposes of usage.
|
||||||
|
// Copyright (C) 2016-2024 the original author or authors.
|
||||||
|
//
|
||||||
|
// This program is free software: you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU General Public License
|
||||||
|
// as published by the Free Software Foundation, either version 3
|
||||||
|
// of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This program is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with this program. If not, see
|
||||||
|
// <https://www.gnu.org/licenses/> or write to the Free Software
|
||||||
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Collections used to store instances of classes.
|
||||||
|
*
|
||||||
|
* @author <a href="mailto:robertvokac@robertvokac.com">Robert Vokac</a>
|
||||||
|
* @since 0.0.0
|
||||||
|
*/
|
||||||
|
package com.robertvokac.powerframework.collections;
|
@ -1,21 +1,22 @@
|
|||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// power-framework: Java library with many purposes of usage.
|
// power-framework: Java library with many purposes of usage.
|
||||||
// Copyright (C) 2016-2022 the original author or authors.
|
// Copyright (C) 2016-2024 the original author or authors.
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or
|
// This program is free software: you can redistribute it and/or
|
||||||
// modify it under the terms of the GNU Lesser General Public
|
// modify it under the terms of the GNU General Public License
|
||||||
// License as published by the Free Software Foundation;
|
// as published by the Free Software Foundation, either version 3
|
||||||
// version 2.1 of the License only.
|
// of the License, or (at your option) any later version.
|
||||||
//
|
//
|
||||||
// This library is distributed in the hope that it will be useful,
|
// This program is distributed in the hope that it will be useful,
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
// Lesser General Public License for more details.
|
// GNU General Public License for more details.
|
||||||
//
|
//
|
||||||
// You should have received a copy of the GNU Lesser General Public
|
// You should have received a copy of the GNU General Public License
|
||||||
// License along with this library; if not, write to the Free Software
|
// along with this program. If not, see
|
||||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
// <https://www.gnu.org/licenses/> or write to the Free Software
|
||||||
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
//TODO: collections should have methods returning this
|
//TODO: collections should have methods returning this
|
||||||
@ -23,13 +24,13 @@
|
|||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* @author <a href="mailto:robertvokac@nanoboot.org">Robert Vokac</a>
|
* @author <a href="mailto:robertvokac@robertvokac.com">Robert Vokac</a>
|
||||||
* @since 0.0.0
|
* @since 0.0.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
module powerframework.collections {
|
module powerframework.collections {
|
||||||
exports org.nanoboot.powerframework.collections;
|
exports com.robertvokac.powerframework.collections;
|
||||||
exports org.nanoboot.powerframework.collections.arrays;
|
exports com.robertvokac.powerframework.collections.arrays;
|
||||||
requires powerframework.core;
|
requires powerframework.core;
|
||||||
requires powerframework.random;
|
requires powerframework.random;
|
||||||
requires powerframework.utils;
|
requires powerframework.utils;
|
||||||
|
@ -1,46 +0,0 @@
|
|||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
||||||
// power-framework: Java library with many purposes of usage.
|
|
||||||
// Copyright (C) 2016-2022 the original author or authors.
|
|
||||||
//
|
|
||||||
// This library is free software; you can redistribute it and/or
|
|
||||||
// modify it under the terms of the GNU Lesser General Public
|
|
||||||
// License as published by the Free Software Foundation;
|
|
||||||
// version 2.1 of the License only.
|
|
||||||
//
|
|
||||||
// This library is distributed in the hope that it will be useful,
|
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
// Lesser General Public License for more details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU Lesser General Public
|
|
||||||
// License along with this library; if not, write to the Free Software
|
|
||||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
package org.nanoboot.powerframework.collections;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* @author <a href="mailto:robertvokac@nanoboot.org">Robert Vokac</a>
|
|
||||||
* @since 0.0.0
|
|
||||||
*/
|
|
||||||
|
|
||||||
public enum BinaryTreeNodeType {
|
|
||||||
/**
|
|
||||||
* Undefined node.
|
|
||||||
*/
|
|
||||||
UNDEFINED,
|
|
||||||
/**
|
|
||||||
* Root node.
|
|
||||||
*/
|
|
||||||
ROOT,
|
|
||||||
/**
|
|
||||||
* Left node.
|
|
||||||
*/
|
|
||||||
LEFT,
|
|
||||||
/**
|
|
||||||
* Right node.
|
|
||||||
*/
|
|
||||||
RIGHT;
|
|
||||||
}
|
|
@ -1,43 +0,0 @@
|
|||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
||||||
// power-framework: Java library with many purposes of usage.
|
|
||||||
// Copyright (C) 2016-2022 the original author or authors.
|
|
||||||
//
|
|
||||||
// This library is free software; you can redistribute it and/or
|
|
||||||
// modify it under the terms of the GNU Lesser General Public
|
|
||||||
// License as published by the Free Software Foundation;
|
|
||||||
// version 2.1 of the License only.
|
|
||||||
//
|
|
||||||
// This library is distributed in the hope that it will be useful,
|
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
// Lesser General Public License for more details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU Lesser General Public
|
|
||||||
// License along with this library; if not, write to the Free Software
|
|
||||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
package org.nanoboot.powerframework.collections;
|
|
||||||
|
|
||||||
import org.nanoboot.powerframework.core.PowerException;
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* @author <a href="mailto:robertvokac@nanoboot.org">Robert Vokac</a>
|
|
||||||
* @since 0.0.0
|
|
||||||
*/
|
|
||||||
|
|
||||||
public class CollectionException extends PowerException {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Constructor
|
|
||||||
*
|
|
||||||
* @param messageIn message describing this exception
|
|
||||||
*/
|
|
||||||
public CollectionException(final String messageIn) {
|
|
||||||
super(messageIn);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
@ -1,62 +0,0 @@
|
|||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
||||||
// power-framework: Java library with many purposes of usage.
|
|
||||||
// Copyright (C) 2016-2022 the original author or authors.
|
|
||||||
//
|
|
||||||
// This library is free software; you can redistribute it and/or
|
|
||||||
// modify it under the terms of the GNU Lesser General Public
|
|
||||||
// License as published by the Free Software Foundation;
|
|
||||||
// version 2.1 of the License only.
|
|
||||||
//
|
|
||||||
// This library is distributed in the hope that it will be useful,
|
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
// Lesser General Public License for more details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU Lesser General Public
|
|
||||||
// License along with this library; if not, write to the Free Software
|
|
||||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
package org.nanoboot.powerframework.collections;
|
|
||||||
|
|
||||||
import lombok.Getter;
|
|
||||||
import lombok.Setter;
|
|
||||||
import org.nanoboot.powerframework.core.PowerObject;
|
|
||||||
import org.nanoboot.powerframework.utils.annotations.ToRemove;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Here goes the description of this class.
|
|
||||||
*
|
|
||||||
* @author <a href="mailto:robertvokac@nanoboot.org">Robert Vokac</a>
|
|
||||||
* @since 0.0.0
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
@ToRemove
|
|
||||||
public class Table extends PowerObject {
|
|
||||||
/**
|
|
||||||
* Name of the table.
|
|
||||||
*/
|
|
||||||
@Getter
|
|
||||||
@Setter
|
|
||||||
private String name;
|
|
||||||
/**
|
|
||||||
* Constructor.
|
|
||||||
*
|
|
||||||
* Not meant to be instantiated.
|
|
||||||
*/
|
|
||||||
private Table() {
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Constructor.
|
|
||||||
*
|
|
||||||
* Constructor description
|
|
||||||
*
|
|
||||||
* @param nameIn name
|
|
||||||
*/
|
|
||||||
public Table(final String nameIn) {
|
|
||||||
this.setName(nameIn);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
@ -1,56 +0,0 @@
|
|||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
||||||
// power-framework: Java library with many purposes of usage.
|
|
||||||
// Copyright (C) 2016-2022 the original author or authors.
|
|
||||||
//
|
|
||||||
// This library is free software; you can redistribute it and/or
|
|
||||||
// modify it under the terms of the GNU Lesser General Public
|
|
||||||
// License as published by the Free Software Foundation;
|
|
||||||
// version 2.1 of the License only.
|
|
||||||
//
|
|
||||||
// This library is distributed in the hope that it will be useful,
|
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
// Lesser General Public License for more details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU Lesser General Public
|
|
||||||
// License along with this library; if not, write to the Free Software
|
|
||||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
package org.nanoboot.powerframework.collections;
|
|
||||||
|
|
||||||
|
|
||||||
import lombok.Getter;
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @param <T> element type
|
|
||||||
*
|
|
||||||
* @author <a href="mailto:robertvokac@nanoboot.org">Robert Vokac</a>
|
|
||||||
* @since 0.0.0
|
|
||||||
*/
|
|
||||||
public class Tree<T> {
|
|
||||||
/**
|
|
||||||
* Root.
|
|
||||||
*/
|
|
||||||
@Getter
|
|
||||||
private final TreeNode<T> root;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Constructor.
|
|
||||||
*/
|
|
||||||
public Tree() {
|
|
||||||
root = new TreeNode<>();
|
|
||||||
root.setName("root");
|
|
||||||
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* Constructor.
|
|
||||||
* @param rootIn root node
|
|
||||||
*/
|
|
||||||
public Tree(final TreeNode<T> rootIn) {
|
|
||||||
this.root = rootIn;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
@ -1,38 +0,0 @@
|
|||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
||||||
// power-framework: Java library with many purposes of usage.
|
|
||||||
// Copyright (C) 2016-2022 the original author or authors.
|
|
||||||
//
|
|
||||||
// This library is free software; you can redistribute it and/or
|
|
||||||
// modify it under the terms of the GNU Lesser General Public
|
|
||||||
// License as published by the Free Software Foundation;
|
|
||||||
// version 2.1 of the License only.
|
|
||||||
//
|
|
||||||
// This library is distributed in the hope that it will be useful,
|
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
// Lesser General Public License for more details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU Lesser General Public
|
|
||||||
// License along with this library; if not, write to the Free Software
|
|
||||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
package org.nanoboot.powerframework.collections.arrays;
|
|
||||||
|
|
||||||
import org.nanoboot.powerframework.collections.CollectionException;
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* @author <a href="mailto:robertvokac@nanoboot.org">Robert Vokac</a>
|
|
||||||
* @since 0.0.0
|
|
||||||
*/
|
|
||||||
|
|
||||||
public class ArrayException extends CollectionException {
|
|
||||||
|
|
||||||
public ArrayException(String message) {
|
|
||||||
super(message);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
@ -1,43 +0,0 @@
|
|||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
||||||
// power-framework: Java library with many purposes of usage.
|
|
||||||
// Copyright (C) 2016-2022 the original author or authors.
|
|
||||||
//
|
|
||||||
// This library is free software; you can redistribute it and/or
|
|
||||||
// modify it under the terms of the GNU Lesser General Public
|
|
||||||
// License as published by the Free Software Foundation;
|
|
||||||
// version 2.1 of the License only.
|
|
||||||
//
|
|
||||||
// This library is distributed in the hope that it will be useful,
|
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
// Lesser General Public License for more details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU Lesser General Public
|
|
||||||
// License along with this library; if not, write to the Free Software
|
|
||||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
package org.nanoboot.powerframework.collections.arrays;
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* @author <a href="mailto:robertvokac@nanoboot.org">Robert Vokac</a>
|
|
||||||
* @since 0.0.0
|
|
||||||
*/
|
|
||||||
|
|
||||||
public enum ArrayType {
|
|
||||||
//TODO CHAR- char array
|
|
||||||
|
|
||||||
BOOLEAN,
|
|
||||||
BYTE,
|
|
||||||
CHAR,
|
|
||||||
SHORT,
|
|
||||||
INT,
|
|
||||||
LONG,
|
|
||||||
FLOAT,
|
|
||||||
DOUBLE,
|
|
||||||
OBJECT;
|
|
||||||
|
|
||||||
}
|
|
@ -1,27 +0,0 @@
|
|||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
||||||
// power-framework: Java library with many purposes of usage.
|
|
||||||
// Copyright (C) 2016-2022 the original author or authors.
|
|
||||||
//
|
|
||||||
// This library is free software; you can redistribute it and/or
|
|
||||||
// modify it under the terms of the GNU Lesser General Public
|
|
||||||
// License as published by the Free Software Foundation;
|
|
||||||
// version 2.1 of the License only.
|
|
||||||
//
|
|
||||||
// This library is distributed in the hope that it will be useful,
|
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
// Lesser General Public License for more details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU Lesser General Public
|
|
||||||
// License along with this library; if not, write to the Free Software
|
|
||||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Classes for arrays (index starting from 1, not 0).
|
|
||||||
*
|
|
||||||
* @author <a href="mailto:robertvokac@nanoboot.org">Robert Vokac</a>
|
|
||||||
* @since 0.0.0
|
|
||||||
*/
|
|
||||||
package org.nanoboot.powerframework.collections.arrays;
|
|
@ -1,45 +0,0 @@
|
|||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
||||||
// power-framework: Java library with many purposes of usage.
|
|
||||||
// Copyright (C) 2016-2022 the original author or authors.
|
|
||||||
//
|
|
||||||
// This library is free software; you can redistribute it and/or
|
|
||||||
// modify it under the terms of the GNU Lesser General Public
|
|
||||||
// License as published by the Free Software Foundation;
|
|
||||||
// version 2.1 of the License only.
|
|
||||||
//
|
|
||||||
// This library is distributed in the hope that it will be useful,
|
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
// Lesser General Public License for more details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU Lesser General Public
|
|
||||||
// License along with this library; if not, write to the Free Software
|
|
||||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
package org.nanoboot.powerframework.collections.internal;
|
|
||||||
|
|
||||||
import lombok.Getter;
|
|
||||||
import lombok.Setter;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Represents one node of linked list.
|
|
||||||
*
|
|
||||||
* It is used to store a value based on the T.
|
|
||||||
*
|
|
||||||
* These nodes are linked (forward direction only).
|
|
||||||
*
|
|
||||||
* @param <E> The type of the value this node holds
|
|
||||||
*
|
|
||||||
* @author <a href="mailto:robertvokac@nanoboot.org">Robert Vokac</a>
|
|
||||||
* @since 0.0.0
|
|
||||||
*/
|
|
||||||
public abstract class AbstractLinkedListNode<E> {
|
|
||||||
/**
|
|
||||||
* Value.
|
|
||||||
*/
|
|
||||||
@Getter
|
|
||||||
@Setter
|
|
||||||
private E value;
|
|
||||||
}
|
|
@ -1,53 +0,0 @@
|
|||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
||||||
// power-framework: Java library with many purposes of usage.
|
|
||||||
// Copyright (C) 2016-2022 the original author or authors.
|
|
||||||
//
|
|
||||||
// This library is free software; you can redistribute it and/or
|
|
||||||
// modify it under the terms of the GNU Lesser General Public
|
|
||||||
// License as published by the Free Software Foundation;
|
|
||||||
// version 2.1 of the License only.
|
|
||||||
//
|
|
||||||
// This library is distributed in the hope that it will be useful,
|
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
// Lesser General Public License for more details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU Lesser General Public
|
|
||||||
// License along with this library; if not, write to the Free Software
|
|
||||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
package org.nanoboot.powerframework.collections.internal;
|
|
||||||
|
|
||||||
import lombok.Getter;
|
|
||||||
import lombok.Setter;
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @param <T>
|
|
||||||
*
|
|
||||||
* @author <a href="mailto:robertvokac@nanoboot.org">Robert Vokac</a>
|
|
||||||
* @since 0.0.0
|
|
||||||
*/
|
|
||||||
public abstract class AbstractTreeNode<T> {
|
|
||||||
/**
|
|
||||||
* Parent node.
|
|
||||||
*/
|
|
||||||
@Getter
|
|
||||||
@Setter
|
|
||||||
private AbstractTreeNode<T> parent = null;
|
|
||||||
/**
|
|
||||||
* The value to be hold.
|
|
||||||
*/
|
|
||||||
@Getter
|
|
||||||
@Setter
|
|
||||||
private T value;
|
|
||||||
/**
|
|
||||||
* Name of the node.
|
|
||||||
*/
|
|
||||||
@Getter
|
|
||||||
@Setter
|
|
||||||
private String name;
|
|
||||||
|
|
||||||
}
|
|
@ -1,27 +0,0 @@
|
|||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
||||||
// power-framework: Java library with many purposes of usage.
|
|
||||||
// Copyright (C) 2016-2022 the original author or authors.
|
|
||||||
//
|
|
||||||
// This library is free software; you can redistribute it and/or
|
|
||||||
// modify it under the terms of the GNU Lesser General Public
|
|
||||||
// License as published by the Free Software Foundation;
|
|
||||||
// version 2.1 of the License only.
|
|
||||||
//
|
|
||||||
// This library is distributed in the hope that it will be useful,
|
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
// Lesser General Public License for more details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU Lesser General Public
|
|
||||||
// License along with this library; if not, write to the Free Software
|
|
||||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Internal classes.
|
|
||||||
*
|
|
||||||
* @author <a href="mailto:robertvokac@nanoboot.org">Robert Vokac</a>
|
|
||||||
* @since 0.0.0
|
|
||||||
*/
|
|
||||||
package org.nanoboot.powerframework.collections.internal;
|
|
@ -1,27 +0,0 @@
|
|||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
||||||
// power-framework: Java library with many purposes of usage.
|
|
||||||
// Copyright (C) 2016-2022 the original author or authors.
|
|
||||||
//
|
|
||||||
// This library is free software; you can redistribute it and/or
|
|
||||||
// modify it under the terms of the GNU Lesser General Public
|
|
||||||
// License as published by the Free Software Foundation;
|
|
||||||
// version 2.1 of the License only.
|
|
||||||
//
|
|
||||||
// This library is distributed in the hope that it will be useful,
|
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
// Lesser General Public License for more details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU Lesser General Public
|
|
||||||
// License along with this library; if not, write to the Free Software
|
|
||||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Collections used to store instances of classes.
|
|
||||||
*
|
|
||||||
* @author <a href="mailto:robertvokac@nanoboot.org">Robert Vokac</a>
|
|
||||||
* @since 0.0.0
|
|
||||||
*/
|
|
||||||
package org.nanoboot.powerframework.collections;
|
|
@ -1,24 +1,25 @@
|
|||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// power-framework: Java library with many purposes of usage.
|
// power-framework: Java library with many purposes of usage.
|
||||||
// Copyright (C) 2016-2022 the original author or authors.
|
// Copyright (C) 2016-2024 the original author or authors.
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or
|
// This program is free software: you can redistribute it and/or
|
||||||
// modify it under the terms of the GNU Lesser General Public
|
// modify it under the terms of the GNU General Public License
|
||||||
// License as published by the Free Software Foundation;
|
// as published by the Free Software Foundation, either version 3
|
||||||
// version 2.1 of the License only.
|
// of the License, or (at your option) any later version.
|
||||||
//
|
//
|
||||||
// This library is distributed in the hope that it will be useful,
|
// This program is distributed in the hope that it will be useful,
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
// Lesser General Public License for more details.
|
// GNU General Public License for more details.
|
||||||
//
|
//
|
||||||
// You should have received a copy of the GNU Lesser General Public
|
// You should have received a copy of the GNU General Public License
|
||||||
// License along with this library; if not, write to the Free Software
|
// along with this program. If not, see
|
||||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
// <https://www.gnu.org/licenses/> or write to the Free Software
|
||||||
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
package org.nanoboot.powerframework.collections;
|
package com.robertvokac.powerframework.collections;
|
||||||
|
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
|
||||||
@ -29,7 +30,7 @@ import org.junit.*;
|
|||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* @author <a href="mailto:robertvokac@nanoboot.org">Robert Vokac</a>
|
* @author <a href="mailto:robertvokac@robertvokac.com">Robert Vokac</a>
|
||||||
* @since 0.0.0
|
* @since 0.0.0
|
||||||
*/
|
*/
|
||||||
|
|
@ -1,24 +1,25 @@
|
|||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// power-framework: Java library with many purposes of usage.
|
// power-framework: Java library with many purposes of usage.
|
||||||
// Copyright (C) 2016-2022 the original author or authors.
|
// Copyright (C) 2016-2024 the original author or authors.
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or
|
// This program is free software: you can redistribute it and/or
|
||||||
// modify it under the terms of the GNU Lesser General Public
|
// modify it under the terms of the GNU General Public License
|
||||||
// License as published by the Free Software Foundation;
|
// as published by the Free Software Foundation, either version 3
|
||||||
// version 2.1 of the License only.
|
// of the License, or (at your option) any later version.
|
||||||
//
|
//
|
||||||
// This library is distributed in the hope that it will be useful,
|
// This program is distributed in the hope that it will be useful,
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
// Lesser General Public License for more details.
|
// GNU General Public License for more details.
|
||||||
//
|
//
|
||||||
// You should have received a copy of the GNU Lesser General Public
|
// You should have received a copy of the GNU General Public License
|
||||||
// License along with this library; if not, write to the Free Software
|
// along with this program. If not, see
|
||||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
// <https://www.gnu.org/licenses/> or write to the Free Software
|
||||||
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
package org.nanoboot.powerframework.collections;
|
package com.robertvokac.powerframework.collections;
|
||||||
|
|
||||||
import static org.junit.Assert.*;
|
import static org.junit.Assert.*;
|
||||||
import org.junit.*;
|
import org.junit.*;
|
||||||
@ -30,7 +31,7 @@ import static org.junit.Assert.assertEquals;
|
|||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* @author <a href="mailto:robertvokac@nanoboot.org">Robert Vokac</a>
|
* @author <a href="mailto:robertvokac@robertvokac.com">Robert Vokac</a>
|
||||||
* @since 0.0.0
|
* @since 0.0.0
|
||||||
*/
|
*/
|
||||||
public class PropertiesTest {
|
public class PropertiesTest {
|
@ -1,24 +1,25 @@
|
|||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// power-framework: Java library with many purposes of usage.
|
// power-framework: Java library with many purposes of usage.
|
||||||
// Copyright (C) 2016-2022 the original author or authors.
|
// Copyright (C) 2016-2024 the original author or authors.
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or
|
// This program is free software: you can redistribute it and/or
|
||||||
// modify it under the terms of the GNU Lesser General Public
|
// modify it under the terms of the GNU General Public License
|
||||||
// License as published by the Free Software Foundation;
|
// as published by the Free Software Foundation, either version 3
|
||||||
// version 2.1 of the License only.
|
// of the License, or (at your option) any later version.
|
||||||
//
|
//
|
||||||
// This library is distributed in the hope that it will be useful,
|
// This program is distributed in the hope that it will be useful,
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
// Lesser General Public License for more details.
|
// GNU General Public License for more details.
|
||||||
//
|
//
|
||||||
// You should have received a copy of the GNU Lesser General Public
|
// You should have received a copy of the GNU General Public License
|
||||||
// License along with this library; if not, write to the Free Software
|
// along with this program. If not, see
|
||||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
// <https://www.gnu.org/licenses/> or write to the Free Software
|
||||||
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
package org.nanoboot.powerframework.collections;
|
package com.robertvokac.powerframework.collections;
|
||||||
|
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
|
||||||
@ -29,7 +30,7 @@ import org.junit.*;
|
|||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* @author <a href="mailto:robertvokac@nanoboot.org">Robert Vokac</a>
|
* @author <a href="mailto:robertvokac@robertvokac.com">Robert Vokac</a>
|
||||||
* @since 0.0.0
|
* @since 0.0.0
|
||||||
*/
|
*/
|
||||||
|
|
@ -1,24 +1,25 @@
|
|||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// power-framework: Java library with many purposes of usage.
|
// power-framework: Java library with many purposes of usage.
|
||||||
// Copyright (C) 2016-2022 the original author or authors.
|
// Copyright (C) 2016-2024 the original author or authors.
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or
|
// This program is free software: you can redistribute it and/or
|
||||||
// modify it under the terms of the GNU Lesser General Public
|
// modify it under the terms of the GNU General Public License
|
||||||
// License as published by the Free Software Foundation;
|
// as published by the Free Software Foundation, either version 3
|
||||||
// version 2.1 of the License only.
|
// of the License, or (at your option) any later version.
|
||||||
//
|
//
|
||||||
// This library is distributed in the hope that it will be useful,
|
// This program is distributed in the hope that it will be useful,
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
// Lesser General Public License for more details.
|
// GNU General Public License for more details.
|
||||||
//
|
//
|
||||||
// You should have received a copy of the GNU Lesser General Public
|
// You should have received a copy of the GNU General Public License
|
||||||
// License along with this library; if not, write to the Free Software
|
// along with this program. If not, see
|
||||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
// <https://www.gnu.org/licenses/> or write to the Free Software
|
||||||
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
package org.nanoboot.powerframework.collections;
|
package com.robertvokac.powerframework.collections;
|
||||||
|
|
||||||
import static org.junit.Assert.*;
|
import static org.junit.Assert.*;
|
||||||
|
|
||||||
@ -27,7 +28,7 @@ import org.junit.*;
|
|||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* @author <a href="mailto:robertvokac@nanoboot.org">Robert Vokac</a>
|
* @author <a href="mailto:robertvokac@robertvokac.com">Robert Vokac</a>
|
||||||
* @since 0.0.0
|
* @since 0.0.0
|
||||||
*/
|
*/
|
||||||
public class SingleLinkedListNodeTest {
|
public class SingleLinkedListNodeTest {
|
@ -1,36 +1,37 @@
|
|||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// power-framework: Java library with many purposes of usage.
|
// power-framework: Java library with many purposes of usage.
|
||||||
// Copyright (C) 2016-2022 the original author or authors.
|
// Copyright (C) 2016-2024 the original author or authors.
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or
|
// This program is free software: you can redistribute it and/or
|
||||||
// modify it under the terms of the GNU Lesser General Public
|
// modify it under the terms of the GNU General Public License
|
||||||
// License as published by the Free Software Foundation;
|
// as published by the Free Software Foundation, either version 3
|
||||||
// version 2.1 of the License only.
|
// of the License, or (at your option) any later version.
|
||||||
//
|
//
|
||||||
// This library is distributed in the hope that it will be useful,
|
// This program is distributed in the hope that it will be useful,
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
// Lesser General Public License for more details.
|
// GNU General Public License for more details.
|
||||||
//
|
//
|
||||||
// You should have received a copy of the GNU Lesser General Public
|
// You should have received a copy of the GNU General Public License
|
||||||
// License along with this library; if not, write to the Free Software
|
// along with this program. If not, see
|
||||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
// <https://www.gnu.org/licenses/> or write to the Free Software
|
||||||
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
package org.nanoboot.powerframework.collections;
|
package com.robertvokac.powerframework.collections;
|
||||||
|
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
|
||||||
import static org.junit.Assert.*;
|
import static org.junit.Assert.*;
|
||||||
|
|
||||||
import org.nanoboot.powerframework.core.exceptions.NotYetImplementedException;
|
import com.robertvokac.powerframework.core.exceptions.NotYetImplementedException;
|
||||||
import org.junit.*;
|
import org.junit.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* @author <a href="mailto:robertvokac@nanoboot.org">Robert Vokac</a>
|
* @author <a href="mailto:robertvokac@robertvokac.com">Robert Vokac</a>
|
||||||
* @since 0.0.0
|
* @since 0.0.0
|
||||||
*/
|
*/
|
||||||
public class SingleLinkedListTest {
|
public class SingleLinkedListTest {
|
@ -1,24 +1,25 @@
|
|||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// power-framework: Java library with many purposes of usage.
|
// power-framework: Java library with many purposes of usage.
|
||||||
// Copyright (C) 2016-2022 the original author or authors.
|
// Copyright (C) 2016-2024 the original author or authors.
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or
|
// This program is free software: you can redistribute it and/or
|
||||||
// modify it under the terms of the GNU Lesser General Public
|
// modify it under the terms of the GNU General Public License
|
||||||
// License as published by the Free Software Foundation;
|
// as published by the Free Software Foundation, either version 3
|
||||||
// version 2.1 of the License only.
|
// of the License, or (at your option) any later version.
|
||||||
//
|
//
|
||||||
// This library is distributed in the hope that it will be useful,
|
// This program is distributed in the hope that it will be useful,
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
// Lesser General Public License for more details.
|
// GNU General Public License for more details.
|
||||||
//
|
//
|
||||||
// You should have received a copy of the GNU Lesser General Public
|
// You should have received a copy of the GNU General Public License
|
||||||
// License along with this library; if not, write to the Free Software
|
// along with this program. If not, see
|
||||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
// <https://www.gnu.org/licenses/> or write to the Free Software
|
||||||
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
package org.nanoboot.powerframework.collections;
|
package com.robertvokac.powerframework.collections;
|
||||||
|
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
|
||||||
@ -28,7 +29,7 @@ import org.junit.*;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author <a href="mailto:robertvokac@nanoboot.org">Robert Vokac</a>
|
* @author <a href="mailto:robertvokac@robertvokac.com">Robert Vokac</a>
|
||||||
* @since 0.0.0
|
* @since 0.0.0
|
||||||
*/
|
*/
|
||||||
|
|
@ -1,21 +1,22 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!--
|
<!--
|
||||||
power-framework: Java library with many purposes of usage.
|
power-framework: Java library with many purposes of usage.
|
||||||
Copyright (C) 2016-2022 the original author or authors.
|
Copyright (C) 2016-2024 the original author or authors.
|
||||||
|
|
||||||
This library is free software; you can redistribute it and/or
|
This program is free software: you can redistribute it and/or
|
||||||
modify it under the terms of the GNU Lesser General Public
|
modify it under the terms of the GNU General Public License
|
||||||
License as published by the Free Software Foundation;
|
as published by the Free Software Foundation, either version 3
|
||||||
version 2.1 of the License only.
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
This library is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
Lesser General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU Lesser General Public
|
You should have received a copy of the GNU General Public License
|
||||||
License along with this library; if not, write to the Free Software
|
along with this program. If not, see
|
||||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
<https://www.gnu.org/licenses/> or write to the Free Software
|
||||||
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
-->
|
-->
|
||||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
@ -23,9 +24,9 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>org.nanoboot.powerframework</groupId>
|
<groupId>com.robertvokac.powerframework</groupId>
|
||||||
<artifactId>power-framework</artifactId>
|
<artifactId>power-framework</artifactId>
|
||||||
<version>2.0.0</version>
|
<version>2.0.1-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<artifactId>power-core</artifactId>
|
<artifactId>power-core</artifactId>
|
||||||
@ -35,7 +36,7 @@
|
|||||||
<description>Core functionality for the Power library</description>
|
<description>Core functionality for the Power library</description>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<checkstyle.skip>false</checkstyle.skip>
|
<checkstyle.skip>true</checkstyle.skip>
|
||||||
</properties>
|
</properties>
|
||||||
<build>
|
<build>
|
||||||
<resources>
|
<resources>
|
||||||
|
@ -0,0 +1,42 @@
|
|||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
// power-framework: Java library with many purposes of usage.
|
||||||
|
// Copyright (C) 2016-2024 the original author or authors.
|
||||||
|
//
|
||||||
|
// This program is free software: you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU General Public License
|
||||||
|
// as published by the Free Software Foundation, either version 3
|
||||||
|
// of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This program is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with this program. If not, see
|
||||||
|
// <https://www.gnu.org/licenses/> or write to the Free Software
|
||||||
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
package com.robertvokac.powerframework.core;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Exception class for classes in core package.
|
||||||
|
*
|
||||||
|
* @author <a href="mailto:robertvokac@robertvokac.com">Robert Vokac</a>
|
||||||
|
* @since 0.0.0
|
||||||
|
*/
|
||||||
|
public class CoreException extends PowerException {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructor with message.
|
||||||
|
*
|
||||||
|
* @param message message describing the reason,
|
||||||
|
* why this exception was thrown.
|
||||||
|
*/
|
||||||
|
public CoreException(final String message) {
|
||||||
|
super(message);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -1,29 +1,30 @@
|
|||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// power-framework: Java library with many purposes of usage.
|
// power-framework: Java library with many purposes of usage.
|
||||||
// Copyright (C) 2016-2022 the original author or authors.
|
// Copyright (C) 2016-2024 the original author or authors.
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or
|
// This program is free software: you can redistribute it and/or
|
||||||
// modify it under the terms of the GNU Lesser General Public
|
// modify it under the terms of the GNU General Public License
|
||||||
// License as published by the Free Software Foundation;
|
// as published by the Free Software Foundation, either version 3
|
||||||
// version 2.1 of the License only.
|
// of the License, or (at your option) any later version.
|
||||||
//
|
//
|
||||||
// This library is distributed in the hope that it will be useful,
|
// This program is distributed in the hope that it will be useful,
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
// Lesser General Public License for more details.
|
// GNU General Public License for more details.
|
||||||
//
|
//
|
||||||
// You should have received a copy of the GNU Lesser General Public
|
// You should have received a copy of the GNU General Public License
|
||||||
// License along with this library; if not, write to the Free Software
|
// along with this program. If not, see
|
||||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
// <https://www.gnu.org/licenses/> or write to the Free Software
|
||||||
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
package org.nanoboot.powerframework.core;
|
package com.robertvokac.powerframework.core;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Exception for Power library.
|
* Exception for Power library.
|
||||||
*
|
*
|
||||||
* @author <a href="mailto:robertvokac@nanoboot.org">Robert Vokac</a>
|
* @author <a href="mailto:robertvokac@robertvokac.com">Robert Vokac</a>
|
||||||
* @since 0.0.0
|
* @since 0.0.0
|
||||||
*/
|
*/
|
||||||
public class PowerException extends RuntimeException {
|
public class PowerException extends RuntimeException {
|
@ -1,32 +1,33 @@
|
|||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// power-framework: Java library with many purposes of usage.
|
// power-framework: Java library with many purposes of usage.
|
||||||
// Copyright (C) 2016-2022 the original author or authors.
|
// Copyright (C) 2016-2024 the original author or authors.
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or
|
// This program is free software: you can redistribute it and/or
|
||||||
// modify it under the terms of the GNU Lesser General Public
|
// modify it under the terms of the GNU General Public License
|
||||||
// License as published by the Free Software Foundation;
|
// as published by the Free Software Foundation, either version 3
|
||||||
// version 2.1 of the License only.
|
// of the License, or (at your option) any later version.
|
||||||
//
|
//
|
||||||
// This library is distributed in the hope that it will be useful,
|
// This program is distributed in the hope that it will be useful,
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
// Lesser General Public License for more details.
|
// GNU General Public License for more details.
|
||||||
//
|
//
|
||||||
// You should have received a copy of the GNU Lesser General Public
|
// You should have received a copy of the GNU General Public License
|
||||||
// License along with this library; if not, write to the Free Software
|
// along with this program. If not, see
|
||||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
// <https://www.gnu.org/licenses/> or write to the Free Software
|
||||||
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
package org.nanoboot.powerframework.core;
|
package com.robertvokac.powerframework.core;
|
||||||
|
|
||||||
import org.nanoboot.powerframework.core.version.Version;
|
import com.robertvokac.powerframework.core.version.Version;
|
||||||
import org.nanoboot.powerframework.core.version.VersionType;
|
import com.robertvokac.powerframework.core.version.VersionType;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Power is the core class of the Power library.
|
* Power is the core class of the Power library.
|
||||||
*
|
*
|
||||||
* @author <a href="mailto:robertvokac@nanoboot.org">Robert Vokac</a>
|
* @author <a href="mailto:robertvokac@robertvokac.com">Robert Vokac</a>
|
||||||
* @since 0.0.0
|
* @since 0.0.0
|
||||||
*/
|
*/
|
||||||
public final class PowerFramework {
|
public final class PowerFramework {
|
@ -0,0 +1,51 @@
|
|||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
// power-framework: Java library with many purposes of usage.
|
||||||
|
// Copyright (C) 2016-2024 the original author or authors.
|
||||||
|
//
|
||||||
|
// This program is free software: you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU General Public License
|
||||||
|
// as published by the Free Software Foundation, either version 3
|
||||||
|
// of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This program is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with this program. If not, see
|
||||||
|
// <https://www.gnu.org/licenses/> or write to the Free Software
|
||||||
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
package com.robertvokac.powerframework.core;
|
||||||
|
|
||||||
|
import lombok.Getter;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Base Power object.
|
||||||
|
*
|
||||||
|
* @author <a href="mailto:robertvokac@robertvokac.com">Robert Vokac</a>
|
||||||
|
* @since 0.0.0
|
||||||
|
*/
|
||||||
|
public class PowerObject {
|
||||||
|
/**
|
||||||
|
* Next id.
|
||||||
|
*/
|
||||||
|
private static long nextPowerObjectId = 0;
|
||||||
|
/**
|
||||||
|
* Id.
|
||||||
|
*/
|
||||||
|
@Getter
|
||||||
|
private final long powerObjectId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*Constructor.
|
||||||
|
*/
|
||||||
|
public PowerObject() {
|
||||||
|
this.powerObjectId = nextPowerObjectId;
|
||||||
|
nextPowerObjectId++;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,44 @@
|
|||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
// power-framework: Java library with many purposes of usage.
|
||||||
|
// Copyright (C) 2016-2024 the original author or authors.
|
||||||
|
//
|
||||||
|
// This program is free software: you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU General Public License
|
||||||
|
// as published by the Free Software Foundation, either version 3
|
||||||
|
// of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This program is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with this program. If not, see
|
||||||
|
// <https://www.gnu.org/licenses/> or write to the Free Software
|
||||||
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
package com.robertvokac.powerframework.core.exceptions;
|
||||||
|
|
||||||
|
import com.robertvokac.powerframework.core.PowerException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Exception happening in case, something is called, but not implemented yet.
|
||||||
|
*
|
||||||
|
* @author <a href="mailto:robertvokac@robertvokac.com">Robert Vokac</a>
|
||||||
|
* @since 0.0.0
|
||||||
|
*/
|
||||||
|
public class NotYetImplementedException extends PowerException {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructor with message.
|
||||||
|
*
|
||||||
|
* @param message message describing the reason,
|
||||||
|
* why this exception was thrown.
|
||||||
|
*/
|
||||||
|
public NotYetImplementedException(final String message) {
|
||||||
|
super(message);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,46 @@
|
|||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
// power-framework: Java library with many purposes of usage.
|
||||||
|
// Copyright (C) 2016-2024 the original author or authors.
|
||||||
|
//
|
||||||
|
// This program is free software: you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU General Public License
|
||||||
|
// as published by the Free Software Foundation, either version 3
|
||||||
|
// of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This program is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with this program. If not, see
|
||||||
|
// <https://www.gnu.org/licenses/> or write to the Free Software
|
||||||
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
package com.robertvokac.powerframework.core.exceptions;
|
||||||
|
|
||||||
|
import com.robertvokac.powerframework.core.PowerException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Exception happening in case, something is called,
|
||||||
|
* but not implemented and not supported now and
|
||||||
|
* not intended to be supported in future.
|
||||||
|
*
|
||||||
|
* @author <a href="mailto:robertvokac@robertvokac.com">Robert Vokac</a>
|
||||||
|
* @since 0.0.0
|
||||||
|
*/
|
||||||
|
public class UnsupportedMethodException extends PowerException {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructor with message.
|
||||||
|
*
|
||||||
|
* @param message message describing the reason,
|
||||||
|
* why this exception was thrown.
|
||||||
|
*/
|
||||||
|
public UnsupportedMethodException(final String message) {
|
||||||
|
super(message);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,28 @@
|
|||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
// power-framework: Java library with many purposes of usage.
|
||||||
|
// Copyright (C) 2016-2024 the original author or authors.
|
||||||
|
//
|
||||||
|
// This program is free software: you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU General Public License
|
||||||
|
// as published by the Free Software Foundation, either version 3
|
||||||
|
// of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This program is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with this program. If not, see
|
||||||
|
// <https://www.gnu.org/licenses/> or write to the Free Software
|
||||||
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Some common exceptions.
|
||||||
|
*
|
||||||
|
* @author <a href="mailto:robertvokac@robertvokac.com">Robert Vokac</a>
|
||||||
|
* @since 0.0.0
|
||||||
|
*/
|
||||||
|
package com.robertvokac.powerframework.core.exceptions;
|
@ -0,0 +1,30 @@
|
|||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
// power-framework: Java library with many purposes of usage.
|
||||||
|
// Copyright (C) 2016-2024 the original author or authors.
|
||||||
|
//
|
||||||
|
// This program is free software: you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU General Public License
|
||||||
|
// as published by the Free Software Foundation, either version 3
|
||||||
|
// of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This program is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with this program. If not, see
|
||||||
|
// <https://www.gnu.org/licenses/> or write to the Free Software
|
||||||
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Core Power classes.
|
||||||
|
*
|
||||||
|
* @author <a href="mailto:robertvokac@robertvokac.com">Robert Vokac</a>
|
||||||
|
* @since 0.0.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
package com.robertvokac.powerframework.core;
|
@ -1,25 +1,26 @@
|
|||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// power-framework: Java library with many purposes of usage.
|
// power-framework: Java library with many purposes of usage.
|
||||||
// Copyright (C) 2016-2022 the original author or authors.
|
// Copyright (C) 2016-2024 the original author or authors.
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or
|
// This program is free software: you can redistribute it and/or
|
||||||
// modify it under the terms of the GNU Lesser General Public
|
// modify it under the terms of the GNU General Public License
|
||||||
// License as published by the Free Software Foundation;
|
// as published by the Free Software Foundation, either version 3
|
||||||
// version 2.1 of the License only.
|
// of the License, or (at your option) any later version.
|
||||||
//
|
//
|
||||||
// This library is distributed in the hope that it will be useful,
|
// This program is distributed in the hope that it will be useful,
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
// Lesser General Public License for more details.
|
// GNU General Public License for more details.
|
||||||
//
|
//
|
||||||
// You should have received a copy of the GNU Lesser General Public
|
// You should have received a copy of the GNU General Public License
|
||||||
// License along with this library; if not, write to the Free Software
|
// along with this program. If not, see
|
||||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
// <https://www.gnu.org/licenses/> or write to the Free Software
|
||||||
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
package org.nanoboot.powerframework.core.version;
|
package com.robertvokac.powerframework.core.version;
|
||||||
import org.nanoboot.powerframework.core.CoreException;
|
import com.robertvokac.powerframework.core.CoreException;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
/*
|
/*
|
||||||
Examples:
|
Examples:
|
||||||
@ -33,7 +34,7 @@ Examples:
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Version object representing a version of a software.
|
* Version object representing a version of a software.
|
||||||
* @author <a href="mailto:robertvokac@nanoboot.org">Robert Vokac</a>
|
* @author <a href="mailto:robertvokac@robertvokac.com">Robert Vokac</a>
|
||||||
* @since 0.0.0
|
* @since 0.0.0
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
@ -1,30 +1,31 @@
|
|||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// power-framework: Java library with many purposes of usage.
|
// power-framework: Java library with many purposes of usage.
|
||||||
// Copyright (C) 2016-2022 the original author or authors.
|
// Copyright (C) 2016-2024 the original author or authors.
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or
|
// This program is free software: you can redistribute it and/or
|
||||||
// modify it under the terms of the GNU Lesser General Public
|
// modify it under the terms of the GNU General Public License
|
||||||
// License as published by the Free Software Foundation;
|
// as published by the Free Software Foundation, either version 3
|
||||||
// version 2.1 of the License only.
|
// of the License, or (at your option) any later version.
|
||||||
//
|
//
|
||||||
// This library is distributed in the hope that it will be useful,
|
// This program is distributed in the hope that it will be useful,
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
// Lesser General Public License for more details.
|
// GNU General Public License for more details.
|
||||||
//
|
//
|
||||||
// You should have received a copy of the GNU Lesser General Public
|
// You should have received a copy of the GNU General Public License
|
||||||
// License along with this library; if not, write to the Free Software
|
// along with this program. If not, see
|
||||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
// <https://www.gnu.org/licenses/> or write to the Free Software
|
||||||
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
package org.nanoboot.powerframework.core.version;
|
package com.robertvokac.powerframework.core.version;
|
||||||
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Version subtype.
|
* Version subtype.
|
||||||
* @author <a href="mailto:robertvokac@nanoboot.org">Robert Vokac</a>
|
* @author <a href="mailto:robertvokac@robertvokac.com">Robert Vokac</a>
|
||||||
* @since 0.0.0
|
* @since 0.0.0
|
||||||
*/
|
*/
|
||||||
public enum VersionNumberType {
|
public enum VersionNumberType {
|
@ -1,31 +1,32 @@
|
|||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// power-framework: Java library with many purposes of usage.
|
// power-framework: Java library with many purposes of usage.
|
||||||
// Copyright (C) 2016-2022 the original author or authors.
|
// Copyright (C) 2016-2024 the original author or authors.
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or
|
// This program is free software: you can redistribute it and/or
|
||||||
// modify it under the terms of the GNU Lesser General Public
|
// modify it under the terms of the GNU General Public License
|
||||||
// License as published by the Free Software Foundation;
|
// as published by the Free Software Foundation, either version 3
|
||||||
// version 2.1 of the License only.
|
// of the License, or (at your option) any later version.
|
||||||
//
|
//
|
||||||
// This library is distributed in the hope that it will be useful,
|
// This program is distributed in the hope that it will be useful,
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
// Lesser General Public License for more details.
|
// GNU General Public License for more details.
|
||||||
//
|
//
|
||||||
// You should have received a copy of the GNU Lesser General Public
|
// You should have received a copy of the GNU General Public License
|
||||||
// License along with this library; if not, write to the Free Software
|
// along with this program. If not, see
|
||||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
// <https://www.gnu.org/licenses/> or write to the Free Software
|
||||||
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
package org.nanoboot.powerframework.core.version;
|
package com.robertvokac.powerframework.core.version;
|
||||||
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Version type.
|
* Version type.
|
||||||
*
|
*
|
||||||
* @author <a href="mailto:robertvokac@nanoboot.org">Robert Vokac</a>
|
* @author <a href="mailto:robertvokac@robertvokac.com">Robert Vokac</a>
|
||||||
* @since 0.0.0
|
* @since 0.0.0
|
||||||
*/
|
*/
|
||||||
public enum VersionType {
|
public enum VersionType {
|
@ -0,0 +1,28 @@
|
|||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
// power-framework: Java library with many purposes of usage.
|
||||||
|
// Copyright (C) 2016-2024 the original author or authors.
|
||||||
|
//
|
||||||
|
// This program is free software: you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU General Public License
|
||||||
|
// as published by the Free Software Foundation, either version 3
|
||||||
|
// of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This program is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with this program. If not, see
|
||||||
|
// <https://www.gnu.org/licenses/> or write to the Free Software
|
||||||
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Version classes.
|
||||||
|
*
|
||||||
|
* @author <a href="mailto:robertvokac@robertvokac.com">Robert Vokac</a>
|
||||||
|
* @since 0.0.0
|
||||||
|
*/
|
||||||
|
package com.robertvokac.powerframework.core.version;
|
@ -1,32 +1,33 @@
|
|||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// power-framework: Java library with many purposes of usage.
|
// power-framework: Java library with many purposes of usage.
|
||||||
// Copyright (C) 2016-2022 the original author or authors.
|
// Copyright (C) 2016-2024 the original author or authors.
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or
|
// This program is free software: you can redistribute it and/or
|
||||||
// modify it under the terms of the GNU Lesser General Public
|
// modify it under the terms of the GNU General Public License
|
||||||
// License as published by the Free Software Foundation;
|
// as published by the Free Software Foundation, either version 3
|
||||||
// version 2.1 of the License only.
|
// of the License, or (at your option) any later version.
|
||||||
//
|
//
|
||||||
// This library is distributed in the hope that it will be useful,
|
// This program is distributed in the hope that it will be useful,
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
// Lesser General Public License for more details.
|
// GNU General Public License for more details.
|
||||||
//
|
//
|
||||||
// You should have received a copy of the GNU Lesser General Public
|
// You should have received a copy of the GNU General Public License
|
||||||
// License along with this library; if not, write to the Free Software
|
// along with this program. If not, see
|
||||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
// <https://www.gnu.org/licenses/> or write to the Free Software
|
||||||
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* @author <a href="mailto:robertvokac@nanoboot.org">Robert Vokac</a>
|
* @author <a href="mailto:robertvokac@robertvokac.com">Robert Vokac</a>
|
||||||
* @since 0.0.0
|
* @since 0.0.0
|
||||||
*/
|
*/
|
||||||
module powerframework.core {
|
module powerframework.core {
|
||||||
requires lombok;
|
requires lombok;
|
||||||
exports org.nanoboot.powerframework.core;
|
exports com.robertvokac.powerframework.core;
|
||||||
exports org.nanoboot.powerframework.core.exceptions;
|
exports com.robertvokac.powerframework.core.exceptions;
|
||||||
exports org.nanoboot.powerframework.core.version;
|
exports com.robertvokac.powerframework.core.version;
|
||||||
}
|
}
|
||||||
|
@ -1,41 +0,0 @@
|
|||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
||||||
// power-framework: Java library with many purposes of usage.
|
|
||||||
// Copyright (C) 2016-2022 the original author or authors.
|
|
||||||
//
|
|
||||||
// This library is free software; you can redistribute it and/or
|
|
||||||
// modify it under the terms of the GNU Lesser General Public
|
|
||||||
// License as published by the Free Software Foundation;
|
|
||||||
// version 2.1 of the License only.
|
|
||||||
//
|
|
||||||
// This library is distributed in the hope that it will be useful,
|
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
// Lesser General Public License for more details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU Lesser General Public
|
|
||||||
// License along with this library; if not, write to the Free Software
|
|
||||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
package org.nanoboot.powerframework.core;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Exception class for classes in core package.
|
|
||||||
*
|
|
||||||
* @author <a href="mailto:robertvokac@nanoboot.org">Robert Vokac</a>
|
|
||||||
* @since 0.0.0
|
|
||||||
*/
|
|
||||||
public class CoreException extends PowerException {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Constructor with message.
|
|
||||||
*
|
|
||||||
* @param message message describing the reason,
|
|
||||||
* why this exception was thrown.
|
|
||||||
*/
|
|
||||||
public CoreException(final String message) {
|
|
||||||
super(message);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
@ -1,50 +0,0 @@
|
|||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
||||||
// power-framework: Java library with many purposes of usage.
|
|
||||||
// Copyright (C) 2016-2022 the original author or authors.
|
|
||||||
//
|
|
||||||
// This library is free software; you can redistribute it and/or
|
|
||||||
// modify it under the terms of the GNU Lesser General Public
|
|
||||||
// License as published by the Free Software Foundation;
|
|
||||||
// version 2.1 of the License only.
|
|
||||||
//
|
|
||||||
// This library is distributed in the hope that it will be useful,
|
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
// Lesser General Public License for more details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU Lesser General Public
|
|
||||||
// License along with this library; if not, write to the Free Software
|
|
||||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
package org.nanoboot.powerframework.core;
|
|
||||||
|
|
||||||
import lombok.Getter;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Base Power object.
|
|
||||||
*
|
|
||||||
* @author <a href="mailto:robertvokac@nanoboot.org">Robert Vokac</a>
|
|
||||||
* @since 0.0.0
|
|
||||||
*/
|
|
||||||
public class PowerObject {
|
|
||||||
/**
|
|
||||||
* Next id.
|
|
||||||
*/
|
|
||||||
private static long nextPowerObjectId = 0;
|
|
||||||
/**
|
|
||||||
* Id.
|
|
||||||
*/
|
|
||||||
@Getter
|
|
||||||
private final long powerObjectId;
|
|
||||||
|
|
||||||
/**
|
|
||||||
*Constructor.
|
|
||||||
*/
|
|
||||||
public PowerObject() {
|
|
||||||
this.powerObjectId = nextPowerObjectId;
|
|
||||||
nextPowerObjectId++;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
@ -1,43 +0,0 @@
|
|||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
||||||
// power-framework: Java library with many purposes of usage.
|
|
||||||
// Copyright (C) 2016-2022 the original author or authors.
|
|
||||||
//
|
|
||||||
// This library is free software; you can redistribute it and/or
|
|
||||||
// modify it under the terms of the GNU Lesser General Public
|
|
||||||
// License as published by the Free Software Foundation;
|
|
||||||
// version 2.1 of the License only.
|
|
||||||
//
|
|
||||||
// This library is distributed in the hope that it will be useful,
|
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
// Lesser General Public License for more details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU Lesser General Public
|
|
||||||
// License along with this library; if not, write to the Free Software
|
|
||||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
package org.nanoboot.powerframework.core.exceptions;
|
|
||||||
|
|
||||||
import org.nanoboot.powerframework.core.PowerException;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Exception happening in case, something is called, but not implemented yet.
|
|
||||||
*
|
|
||||||
* @author <a href="mailto:robertvokac@nanoboot.org">Robert Vokac</a>
|
|
||||||
* @since 0.0.0
|
|
||||||
*/
|
|
||||||
public class NotYetImplementedException extends PowerException {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Constructor with message.
|
|
||||||
*
|
|
||||||
* @param message message describing the reason,
|
|
||||||
* why this exception was thrown.
|
|
||||||
*/
|
|
||||||
public NotYetImplementedException(final String message) {
|
|
||||||
super(message);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
@ -1,45 +0,0 @@
|
|||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
||||||
// power-framework: Java library with many purposes of usage.
|
|
||||||
// Copyright (C) 2016-2022 the original author or authors.
|
|
||||||
//
|
|
||||||
// This library is free software; you can redistribute it and/or
|
|
||||||
// modify it under the terms of the GNU Lesser General Public
|
|
||||||
// License as published by the Free Software Foundation;
|
|
||||||
// version 2.1 of the License only.
|
|
||||||
//
|
|
||||||
// This library is distributed in the hope that it will be useful,
|
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
// Lesser General Public License for more details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU Lesser General Public
|
|
||||||
// License along with this library; if not, write to the Free Software
|
|
||||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
package org.nanoboot.powerframework.core.exceptions;
|
|
||||||
|
|
||||||
import org.nanoboot.powerframework.core.PowerException;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Exception happening in case, something is called,
|
|
||||||
* but not implemented and not supported now and
|
|
||||||
* not intended to be supported in future.
|
|
||||||
*
|
|
||||||
* @author <a href="mailto:robertvokac@nanoboot.org">Robert Vokac</a>
|
|
||||||
* @since 0.0.0
|
|
||||||
*/
|
|
||||||
public class UnsupportedMethodException extends PowerException {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Constructor with message.
|
|
||||||
*
|
|
||||||
* @param message message describing the reason,
|
|
||||||
* why this exception was thrown.
|
|
||||||
*/
|
|
||||||
public UnsupportedMethodException(final String message) {
|
|
||||||
super(message);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
@ -1,27 +0,0 @@
|
|||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
||||||
// power-framework: Java library with many purposes of usage.
|
|
||||||
// Copyright (C) 2016-2022 the original author or authors.
|
|
||||||
//
|
|
||||||
// This library is free software; you can redistribute it and/or
|
|
||||||
// modify it under the terms of the GNU Lesser General Public
|
|
||||||
// License as published by the Free Software Foundation;
|
|
||||||
// version 2.1 of the License only.
|
|
||||||
//
|
|
||||||
// This library is distributed in the hope that it will be useful,
|
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
// Lesser General Public License for more details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU Lesser General Public
|
|
||||||
// License along with this library; if not, write to the Free Software
|
|
||||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Some common exceptions.
|
|
||||||
*
|
|
||||||
* @author <a href="mailto:robertvokac@nanoboot.org">Robert Vokac</a>
|
|
||||||
* @since 0.0.0
|
|
||||||
*/
|
|
||||||
package org.nanoboot.powerframework.core.exceptions;
|
|
@ -1,29 +0,0 @@
|
|||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
||||||
// power-framework: Java library with many purposes of usage.
|
|
||||||
// Copyright (C) 2016-2022 the original author or authors.
|
|
||||||
//
|
|
||||||
// This library is free software; you can redistribute it and/or
|
|
||||||
// modify it under the terms of the GNU Lesser General Public
|
|
||||||
// License as published by the Free Software Foundation;
|
|
||||||
// version 2.1 of the License only.
|
|
||||||
//
|
|
||||||
// This library is distributed in the hope that it will be useful,
|
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
// Lesser General Public License for more details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU Lesser General Public
|
|
||||||
// License along with this library; if not, write to the Free Software
|
|
||||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Core Power classes.
|
|
||||||
*
|
|
||||||
* @author <a href="mailto:robertvokac@nanoboot.org">Robert Vokac</a>
|
|
||||||
* @since 0.0.0
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
package org.nanoboot.powerframework.core;
|
|
@ -1,27 +0,0 @@
|
|||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
||||||
// power-framework: Java library with many purposes of usage.
|
|
||||||
// Copyright (C) 2016-2022 the original author or authors.
|
|
||||||
//
|
|
||||||
// This library is free software; you can redistribute it and/or
|
|
||||||
// modify it under the terms of the GNU Lesser General Public
|
|
||||||
// License as published by the Free Software Foundation;
|
|
||||||
// version 2.1 of the License only.
|
|
||||||
//
|
|
||||||
// This library is distributed in the hope that it will be useful,
|
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
// Lesser General Public License for more details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU Lesser General Public
|
|
||||||
// License along with this library; if not, write to the Free Software
|
|
||||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Version classes.
|
|
||||||
*
|
|
||||||
* @author <a href="mailto:robertvokac@nanoboot.org">Robert Vokac</a>
|
|
||||||
* @since 0.0.0
|
|
||||||
*/
|
|
||||||
package org.nanoboot.powerframework.core.version;
|
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user