Loading .gitignore 0 → 100644 +130 −0 Original line number Diff line number Diff line # Created by .ignore support plugin (hsz.mobi) ### Java template *.class # Mobile Tools for Java (J2ME) .mtj.tmp/ # Package Files # *.jar *.war *.ear # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml hs_err_pid* ### JetBrains template # Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio *.iml ## Directory-based project format: .idea/ # if you remove the above rule, at least ignore the following: # User-specific stuff: # .idea/workspace.xml # .idea/tasks.xml # .idea/dictionaries # Sensitive or high-churn files: # .idea/dataSources.ids # .idea/dataSources.xml # .idea/sqlDataSources.xml # .idea/dynamic.xml # .idea/uiDesigner.xml # Gradle: # .idea/gradle.xml # .idea/libraries # Mongo Explorer plugin: # .idea/mongoSettings.xml ## File-based project format: *.ipr *.iws ## Plugin-specific files: # IntelliJ /out/ # mpeltonen/sbt-idea plugin .idea_modules/ # JIRA plugin atlassian-ide-plugin.xml # Crashlytics plugin (for Android Studio and IntelliJ) com_crashlytics_export_strings.xml crashlytics.properties crashlytics-build.properties ### Maven template target/ pom.xml.tag pom.xml.releaseBackup pom.xml.versionsBackup pom.xml.next release.properties dependency-reduced-pom.xml buildNumber.properties .mvn/timing.properties ### Eclipse template *.pydevproject .metadata .gradle bin/ tmp/ *.tmp *.bak *.swp *~.nib local.properties .settings/ .loadpath # Eclipse Core .project # External tool builders .externalToolBuilders/ # Locally stored "Eclipse launch configurations" *.launch # CDT-specific .cproject # JDT-specific (Eclipse Java Development Tools) .classpath # Java annotation processor (APT) .factorypath # PDT-specific .buildpath # sbteclipse plugin .target # TeXlipse plugin .texlipse ### NetBeans template nbproject/private/ build/ nbbuild/ dist/ nbdist/ nbactions.xml nb-configuration.xml .nb-gradle/ # Vim *.un~ # OS X .DS_Store .DS_Store # project files polygon-out.txt polygon.bin pom.xml 0 → 100644 +12 −0 Original line number Diff line number Diff line <?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> <groupId>cz.muni.fi.pb162.git</groupId> <artifactId>git-workshop</artifactId> <version>1.0-SNAPSHOT</version> </project> No newline at end of file src/main/java/cz/muni/fi/pb162/git/Convertor.java 0 → 100644 +31 −0 Original line number Diff line number Diff line package cz.muni.fi.pb162.git; /** * Class represents a converter to and from czech crowns * * @author Jakub Cechacek */ public interface Convertor { /** * @return amount of czech crowns per unit of foreign currency */ double getConvertRatio(); /** * Convert currency amount to czech crowns * * @param amount amount in foreign currency * @return amount in czech crowns */ double toCzk(int amount); /** * Convert czech crown to foreign currency * * @param amount amount czech crowns * @return amount in foreign currency */ double fromCzk(int amount); } src/main/java/cz/muni/fi/pb162/git/Main.java 0 → 100644 +11 −0 Original line number Diff line number Diff line package cz.muni.fi.pb162.git; /** * @author Jakub Cechacek */ public class Main { public static void main(String[] args) { } } Loading
.gitignore 0 → 100644 +130 −0 Original line number Diff line number Diff line # Created by .ignore support plugin (hsz.mobi) ### Java template *.class # Mobile Tools for Java (J2ME) .mtj.tmp/ # Package Files # *.jar *.war *.ear # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml hs_err_pid* ### JetBrains template # Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio *.iml ## Directory-based project format: .idea/ # if you remove the above rule, at least ignore the following: # User-specific stuff: # .idea/workspace.xml # .idea/tasks.xml # .idea/dictionaries # Sensitive or high-churn files: # .idea/dataSources.ids # .idea/dataSources.xml # .idea/sqlDataSources.xml # .idea/dynamic.xml # .idea/uiDesigner.xml # Gradle: # .idea/gradle.xml # .idea/libraries # Mongo Explorer plugin: # .idea/mongoSettings.xml ## File-based project format: *.ipr *.iws ## Plugin-specific files: # IntelliJ /out/ # mpeltonen/sbt-idea plugin .idea_modules/ # JIRA plugin atlassian-ide-plugin.xml # Crashlytics plugin (for Android Studio and IntelliJ) com_crashlytics_export_strings.xml crashlytics.properties crashlytics-build.properties ### Maven template target/ pom.xml.tag pom.xml.releaseBackup pom.xml.versionsBackup pom.xml.next release.properties dependency-reduced-pom.xml buildNumber.properties .mvn/timing.properties ### Eclipse template *.pydevproject .metadata .gradle bin/ tmp/ *.tmp *.bak *.swp *~.nib local.properties .settings/ .loadpath # Eclipse Core .project # External tool builders .externalToolBuilders/ # Locally stored "Eclipse launch configurations" *.launch # CDT-specific .cproject # JDT-specific (Eclipse Java Development Tools) .classpath # Java annotation processor (APT) .factorypath # PDT-specific .buildpath # sbteclipse plugin .target # TeXlipse plugin .texlipse ### NetBeans template nbproject/private/ build/ nbbuild/ dist/ nbdist/ nbactions.xml nb-configuration.xml .nb-gradle/ # Vim *.un~ # OS X .DS_Store .DS_Store # project files polygon-out.txt polygon.bin
pom.xml 0 → 100644 +12 −0 Original line number Diff line number Diff line <?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> <groupId>cz.muni.fi.pb162.git</groupId> <artifactId>git-workshop</artifactId> <version>1.0-SNAPSHOT</version> </project> No newline at end of file
src/main/java/cz/muni/fi/pb162/git/Convertor.java 0 → 100644 +31 −0 Original line number Diff line number Diff line package cz.muni.fi.pb162.git; /** * Class represents a converter to and from czech crowns * * @author Jakub Cechacek */ public interface Convertor { /** * @return amount of czech crowns per unit of foreign currency */ double getConvertRatio(); /** * Convert currency amount to czech crowns * * @param amount amount in foreign currency * @return amount in czech crowns */ double toCzk(int amount); /** * Convert czech crown to foreign currency * * @param amount amount czech crowns * @return amount in foreign currency */ double fromCzk(int amount); }
src/main/java/cz/muni/fi/pb162/git/Main.java 0 → 100644 +11 −0 Original line number Diff line number Diff line package cz.muni.fi.pb162.git; /** * @author Jakub Cechacek */ public class Main { public static void main(String[] args) { } }