Skip to content

Commit d869dc2

Browse files
committed
initial commit
1 parent a418448 commit d869dc2

File tree

14 files changed

+592
-0
lines changed

14 files changed

+592
-0
lines changed

.classpath

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="src" output="target/classes" path="src/main/java">
4+
<attributes>
5+
<attribute name="optional" value="true"/>
6+
<attribute name="maven.pomderived" value="true"/>
7+
</attributes>
8+
</classpathentry>
9+
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
10+
<attributes>
11+
<attribute name="optional" value="true"/>
12+
<attribute name="maven.pomderived" value="true"/>
13+
<attribute name="test" value="true"/>
14+
</attributes>
15+
</classpathentry>
16+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-13">
17+
<attributes>
18+
<attribute name="maven.pomderived" value="true"/>
19+
</attributes>
20+
</classpathentry>
21+
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
22+
<attributes>
23+
<attribute name="maven.pomderived" value="true"/>
24+
</attributes>
25+
</classpathentry>
26+
<classpathentry kind="output" path="target/classes"/>
27+
</classpath>

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto eol=lf

.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Compiled class file
2+
*.class
3+
4+
# Log file
5+
*.log
6+
7+
# BlueJ files
8+
*.ctxt
9+
10+
# Mobile Tools for Java (J2ME)
11+
.mtj.tmp/
12+
13+
# Package Files #
14+
*.jar
15+
*.war
16+
*.nar
17+
*.ear
18+
*.zip
19+
*.tar.gz
20+
*.rar
21+
22+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
23+
hs_err_pid*
24+
/target/

.project

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>datastructures</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.jdt.core.javabuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
<buildCommand>
14+
<name>org.eclipse.m2e.core.maven2Builder</name>
15+
<arguments>
16+
</arguments>
17+
</buildCommand>
18+
</buildSpec>
19+
<natures>
20+
<nature>org.eclipse.jdt.core.javanature</nature>
21+
<nature>org.eclipse.m2e.core.maven2Nature</nature>
22+
</natures>
23+
</projectDescription>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
eclipse.preferences.version=1
2+
encoding//src/main/java=UTF-8
3+
encoding/<project>=UTF-8

.settings/org.eclipse.jdt.core.prefs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
eclipse.preferences.version=1
2+
org.eclipse.jdt.core.compiler.codegen.targetPlatform=13
3+
org.eclipse.jdt.core.compiler.compliance=13
4+
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
5+
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
6+
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore
7+
org.eclipse.jdt.core.compiler.release=enabled
8+
org.eclipse.jdt.core.compiler.source=13

.settings/org.eclipse.m2e.core.prefs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
activeProfiles=
2+
eclipse.preferences.version=1
3+
resolveWorkspaceProjects=true
4+
version=1

.travis.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
########################
2+
### VARIABLES NEEDED ###
3+
########################
4+
# RELEASE Set to true to release a ZIP-file on github (there has to be a
5+
# target/ directory for that)
6+
#
7+
### Deploy
8+
# GITHUB_API_KEY The api-key of github used to push a release-file
9+
# GPG_EXECUTABLE should be 'gpg2'
10+
# GPG_OWNERTRUST The 'ownertrust' export from the key-file used to sign (base64 encoded)
11+
# GPG_SECRET_KEYS The 'secret-key' export from the key-file used to sign (base64 encoded)
12+
# GPG_PASSPHRASE The passphrase used when generating the GPG-key you're now importing
13+
# MAVEN_CENTRAL 'true' if you want to deploy to maven-central; 'false' or undefined if not
14+
# SONATYPE_PASSWORD The password of your sonatype-account used to push to maven-central
15+
# SONATYPE_USERNAME The userName of your sonatype-account used to push to maven-central
16+
#
17+
####################
18+
### GENERAL INFO ###
19+
####################
20+
# - The 'deploy' step in Travis isn't the same process as the rest. So you have to re-source
21+
# the functions into that process. More than that it isn't a full sh process like with the
22+
# script-phase. So you cannot even source from there directly. That's why the source
23+
# command is IN the deploy.sh script.
24+
25+
language: java
26+
jdk:
27+
- openjdk14
28+
before_install:
29+
- git clone https://github.com/UnterrainerInformatik/Travis-Scripts.git travis
30+
- source travis/functions.Java.sh
31+
- tr_setProjectSubdir Java
32+
- source $TRAVIS/before_install.sh
33+
install:
34+
- source $TRAVIS/install.sh
35+
before_script:
36+
- source $TRAVIS/before_script.sh
37+
script:
38+
- source $TRAVIS/script.sh
39+
40+
before_deploy: ./$TRAVIS/before_deploy.sh
41+
deploy:
42+
- provider: script
43+
skip_cleanup: true
44+
script: ./$TRAVIS/deploy.sh
45+
on:
46+
branch: master
47+
- provider: releases
48+
skip_cleanup: true
49+
overwrite: true
50+
api_key:
51+
secure: $GITHUB_API_KEY
52+
file: $ARTIFACT_ID.$POM_VERSION.zip
53+
on:
54+
tags: true
55+
branch: master

Information.template

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package @package@;
2+
3+
public class Information {
4+
public static final String name = "@name@";
5+
public static final String buildTime = "@buildTime@";
6+
public static final String pomVersion = "@pomVersion@";
7+
}

README.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
![GitHub forks](https://img.shields.io/github/forks/UnterrainerInformatik/java-datastructures?style=social) ![GitHub stars](https://img.shields.io/github/stars/UnterrainerInformatik/java-datastructures?style=social) ![GitHub repo size](https://img.shields.io/github/repo-size/UnterrainerInformatik/java-datastructures) [![GitHub issues](https://img.shields.io/github/issues/UnterrainerInformatik/java-datastructures)](https://github.com/UnterrainerInformatik/java-datastructures/issues)
2+
3+
[![license](https://img.shields.io/github/license/unterrainerinformatik/FiniteStateMachine.svg?maxAge=2592000)](http://unlicense.org) [![Travis-build](https://travis-ci.org/UnterrainerInformatik/java-datastructures.svg?branch=master)](https://travis-ci.org/github/UnterrainerInformatik/java-datastructures) [![Maven Central](https://img.shields.io/maven-central/v/info.unterrainer.commons/datastructures)](https://search.maven.org/artifact/info.unterrainer.commons/datastructures) [![Twitter Follow](https://img.shields.io/twitter/follow/throbax.svg?style=social&label=Follow&maxAge=2592000)](https://twitter.com/throbax)
4+
5+
6+
7+
# datastructures
8+
9+
A library that contains various data-structures.
10+
11+
12+
13+
## Tuple2
14+
15+
This class is a simple generic implementation of a two-tuple.
16+
17+
18+
19+
## Interval
20+
21+
Is exactly what the name suggests. An interval defined by a minimum and a maximum with getters and setters implementing several safety-mechanisms like automatic boundary adaption when changing them, etc...
22+
23+
24+
25+
## Fader
26+
27+
The fader consists of an interval and adds a value (double) to it. The value is always in between the interval.
28+
It adds a percentage getter and setter as well allowing you to do conversions from a percentage-value to your interval and backwards.
29+
30+
31+
32+
# Remarks
33+
34+
All of our projects facilitate the [Project Lombok][lombok]. So please download it and 'install' it in your preferred IDE by clicking on the downloaded jar-file. Then all compile-errors should vanish.
35+
We use the following parts of Project Lombok.
36+
37+
This program is brought to you by [Unterrainer Informatik][homepage].
38+
39+
40+
41+
[homepage]: https://unterrainer.info
42+
[lombok]: https://projectlombok.org
43+

0 commit comments

Comments
 (0)