From 941f1fb43725b0311f8d5fa3ade85bc06bc8fa46 Mon Sep 17 00:00:00 2001 From: danisales Date: Tue, 18 Jun 2019 05:05:59 +0200 Subject: [PATCH] Changed package "dsa" to "es.danisales" --- README.md | 8 ++++---- .../java/{dsa => es/danisales}/random/ValueGenerator.java | 2 +- .../{dsa => es/danisales}/random/target/PackTarget.java | 2 +- .../{dsa => es/danisales}/random/target/SimpleTarget.java | 2 +- .../danisales}/random/target/SimpleTargetBean.java | 4 ++-- .../java/{dsa => es/danisales}/random/target/Target.java | 2 +- src/main/java/{dsa => es/danisales}/utils/Bean.java | 2 +- src/test/java/PackTargetTest.java | 6 +++--- src/test/java/SimpleTargetTest.java | 4 ++-- 9 files changed, 16 insertions(+), 16 deletions(-) rename src/main/java/{dsa => es/danisales}/random/ValueGenerator.java (95%) rename src/main/java/{dsa => es/danisales}/random/target/PackTarget.java (98%) rename src/main/java/{dsa => es/danisales}/random/target/SimpleTarget.java (94%) rename src/main/java/{dsa => es/danisales}/random/target/SimpleTargetBean.java (91%) rename src/main/java/{dsa => es/danisales}/random/target/Target.java (80%) rename src/main/java/{dsa => es/danisales}/utils/Bean.java (72%) diff --git a/README.md b/README.md index c0b1bbb..173e78f 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,12 @@ # random -Librería Java de utilidades en el ámbito de la aleatoriedad +A Java library for random # Features - +- Random Picker: ## Targets -La idea del Target es asignarle un valor de superficie superficie para que luego el PackTarget, compuesto de Target, lance un 'dart' a la superficie formada por todos los Target que contiene. El Target alcanzado por el 'dart' será el escogido aleatoriamente. +La idea del Target es asignarle un valor de superficie para que luego el PackTarget, compuesto de Target, lance un 'dart' a la superficie formada por todos los Target que contiene. El Target alcanzado por el 'dart' será el escogido aleatoriamente. ### Download - Gradle: @@ -46,7 +46,7 @@ Add Dependency: 1.0 ``` -[random 1.0 jar](https://github.com/ByDSA/random/releases/download/1.0/dsa-random-1.0.jar) download are available from this project's Releases. +[random 1.0 jar](https://github.com/ByDSA/random/releases/download/1.0/es.dsa-random-1.0.jar) download are available from Github project's Releases. [![Build Status](https://travis-ci.org/ByDSA/random.svg?branch=master)](https://travis-ci.org/ByDSA/random) diff --git a/src/main/java/dsa/random/ValueGenerator.java b/src/main/java/es/danisales/random/ValueGenerator.java similarity index 95% rename from src/main/java/dsa/random/ValueGenerator.java rename to src/main/java/es/danisales/random/ValueGenerator.java index b109336..f5adc02 100644 --- a/src/main/java/dsa/random/ValueGenerator.java +++ b/src/main/java/es/danisales/random/ValueGenerator.java @@ -1,4 +1,4 @@ -package dsa.random; +package es.danisales.random; import java.util.Random; diff --git a/src/main/java/dsa/random/target/PackTarget.java b/src/main/java/es/danisales/random/target/PackTarget.java similarity index 98% rename from src/main/java/dsa/random/target/PackTarget.java rename to src/main/java/es/danisales/random/target/PackTarget.java index 2eb02c0..95c0624 100644 --- a/src/main/java/dsa/random/target/PackTarget.java +++ b/src/main/java/es/danisales/random/target/PackTarget.java @@ -1,4 +1,4 @@ -package dsa.random.target; +package es.danisales.random.target; import java.security.SecureRandom; import java.util.ArrayList; diff --git a/src/main/java/dsa/random/target/SimpleTarget.java b/src/main/java/es/danisales/random/target/SimpleTarget.java similarity index 94% rename from src/main/java/dsa/random/target/SimpleTarget.java rename to src/main/java/es/danisales/random/target/SimpleTarget.java index af61ab5..635e470 100644 --- a/src/main/java/dsa/random/target/SimpleTarget.java +++ b/src/main/java/es/danisales/random/target/SimpleTarget.java @@ -1,4 +1,4 @@ -package dsa.random.target; +package es.danisales.random.target; public class SimpleTarget implements Target { private long surface = 1; diff --git a/src/main/java/dsa/random/target/SimpleTargetBean.java b/src/main/java/es/danisales/random/target/SimpleTargetBean.java similarity index 91% rename from src/main/java/dsa/random/target/SimpleTargetBean.java rename to src/main/java/es/danisales/random/target/SimpleTargetBean.java index cc55602..fb189b4 100644 --- a/src/main/java/dsa/random/target/SimpleTargetBean.java +++ b/src/main/java/es/danisales/random/target/SimpleTargetBean.java @@ -1,6 +1,6 @@ -package dsa.random.target; +package es.danisales.random.target; -import dsa.utils.Bean; +import es.danisales.utils.Bean; import java.util.Objects; diff --git a/src/main/java/dsa/random/target/Target.java b/src/main/java/es/danisales/random/target/Target.java similarity index 80% rename from src/main/java/dsa/random/target/Target.java rename to src/main/java/es/danisales/random/target/Target.java index 109000a..3f1a257 100644 --- a/src/main/java/dsa/random/target/Target.java +++ b/src/main/java/es/danisales/random/target/Target.java @@ -1,4 +1,4 @@ -package dsa.random.target; +package es.danisales.random.target; public interface Target { Target pickDart(long dart); diff --git a/src/main/java/dsa/utils/Bean.java b/src/main/java/es/danisales/utils/Bean.java similarity index 72% rename from src/main/java/dsa/utils/Bean.java rename to src/main/java/es/danisales/utils/Bean.java index 8cd154d..eb99bb1 100644 --- a/src/main/java/dsa/utils/Bean.java +++ b/src/main/java/es/danisales/utils/Bean.java @@ -1,4 +1,4 @@ -package dsa.utils; +package es.danisales.utils; public interface Bean { void setValue(T v); diff --git a/src/test/java/PackTargetTest.java b/src/test/java/PackTargetTest.java index f5c9d89..43e53c4 100644 --- a/src/test/java/PackTargetTest.java +++ b/src/test/java/PackTargetTest.java @@ -1,6 +1,6 @@ -import dsa.random.target.PackTarget; -import dsa.random.target.SimpleTarget; -import dsa.random.ValueGenerator; +import es.danisales.random.target.PackTarget; +import es.danisales.random.target.SimpleTarget; +import es.danisales.random.ValueGenerator; import org.junit.Test; import static org.junit.Assert.assertEquals; diff --git a/src/test/java/SimpleTargetTest.java b/src/test/java/SimpleTargetTest.java index 12097af..5fdd8b6 100644 --- a/src/test/java/SimpleTargetTest.java +++ b/src/test/java/SimpleTargetTest.java @@ -1,5 +1,5 @@ -import dsa.random.target.SimpleTarget; -import dsa.random.ValueGenerator; +import es.danisales.random.target.SimpleTarget; +import es.danisales.random.ValueGenerator; import org.junit.Test; import static org.junit.Assert.assertEquals;