This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public interface Sample { | |
| /** | |
| * Some javadoc. | |
| */ | |
| void doSomething(); | |
| /** | |
| * Another javadoc. | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import javax.persistence.MappedSuperclass; | |
| @MappedSuperclass | |
| public abstract class AbstractEntity<PK> { | |
| public abstract PK getId(); | |
| public abstract void setId(PK id); | |
| @Override |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import javax.persistence.GeneratedValue; | |
| import javax.persistence.GenerationType; | |
| import javax.persistence.Id; | |
| import javax.persistence.MappedSuperclass; | |
| import java.io.Serializable; | |
| @MappedSuperclass | |
| public abstract class AbstractEntity<PK extends Serializable> { | |
| public static final String GENERATOR = "customSequence"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo apt-get install \ | |
| mc \ | |
| tree \ | |
| gimp \ | |
| xpaint \ | |
| subversion \ | |
| git \ | |
| mercurial \ | |
| vim-gnome \ | |
| synaptic \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import org.junit.Before | |
| import org.junit.Test | |
| import org.junit.runner.RunWith | |
| import org.junit.runners.Parameterized | |
| import static org.junit.runners.Parameterized.Parameters | |
| import static org.junit.Assert.assertEquals | |
| /** | |
| * @author banterCZ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import org.junit.After | |
| import org.junit.Before | |
| import org.junit.Rule | |
| import org.junit.Test | |
| import org.junit.rules.ErrorCollector | |
| import org.openqa.selenium.By | |
| import org.openqa.selenium.remote.DesiredCapabilities | |
| import org.openqa.selenium.remote.RemoteWebDriver | |
| import static org.hamcrest.core.Is.* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def foo(n) { | |
| return {n += it} | |
| } | |
| def accumulator = foo(1) | |
| assert accumulator(2) == 3 | |
| assert accumulator(3) == 6 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def AccumulatorFactory[N](n: N)(implicit num: Numeric[N]) = { | |
| import num._ | |
| var acc = n | |
| (inc: N) => { | |
| acc = acc + inc | |
| acc | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (defn accum [n] | |
| (let [acc (atom n)] | |
| (fn [m] (swap! acc + m)))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <project xmlns="http://maven.apache.org/POM/4.0.0" | |
| 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"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <parent> | |
| <artifactId>parent</artifactId> | |
| <groupId>cz.zvestov.mvn-multimodule-sample</groupId> | |
| <version>1.0.0-SNAPSHOT</version> |