-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ab40b96
commit f08ac81
Showing
18 changed files
with
278,359 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
22 changes: 22 additions & 0 deletions
22
src/main/java/nx/peter/java/dictionary/AdjectiveDictionary.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package nx.peter.java.dictionary; | ||
|
||
import nx.peter.java.util.data.Word; | ||
import nx.peter.java.util.data.word.Adjective; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
public class AdjectiveDictionary extends Dictionary.Builder { | ||
|
||
public AdjectiveDictionary(){ | ||
super(Type.Adjective); | ||
} | ||
|
||
public List<Adjective> getAllAdjectives() { | ||
List<Adjective> adjectives = new ArrayList<>(); | ||
for (Word word : super.getWords()) | ||
adjectives.add(new Adjective(word)); | ||
return adjectives; | ||
} | ||
|
||
} |
21 changes: 21 additions & 0 deletions
21
src/main/java/nx/peter/java/dictionary/AdverbDictionary.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package nx.peter.java.dictionary; | ||
|
||
import nx.peter.java.util.data.Word; | ||
import nx.peter.java.util.data.word.Adverb; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
public class AdverbDictionary extends Dictionary.Builder { | ||
public AdverbDictionary(){ | ||
super(Type.Adverb); | ||
} | ||
|
||
public List<Adverb> getAdverbs() { | ||
List<Adverb> adverbs = new ArrayList<>(); | ||
for (Word word : super.getWords()) | ||
adverbs.add(new Adverb(word.get())); | ||
return adverbs; | ||
} | ||
|
||
} |
22 changes: 22 additions & 0 deletions
22
src/main/java/nx/peter/java/dictionary/BankDictionary.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package nx.peter.java.dictionary; | ||
|
||
import nx.peter.java.util.data.Word; | ||
import nx.peter.java.util.data.word.Bank; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
public class BankDictionary extends Dictionary.Builder { | ||
|
||
public BankDictionary() { | ||
super(Type.Bank); | ||
} | ||
|
||
public List<Bank> getAllBanks() { | ||
List<Bank> banks = new ArrayList<>(); | ||
for (Word word : super.getWords()) | ||
banks.add(new Bank(word)); | ||
return banks; | ||
} | ||
|
||
} |
21 changes: 21 additions & 0 deletions
21
src/main/java/nx/peter/java/dictionary/CountryDictionary.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package nx.peter.java.dictionary; | ||
|
||
import nx.peter.java.util.data.Word; | ||
import nx.peter.java.util.data.word.Country; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
public class CountryDictionary extends Dictionary.Builder { | ||
public CountryDictionary() { | ||
super(Type.Country); | ||
} | ||
|
||
public List<Country> getCountries() { | ||
List<Country> verbs = new ArrayList<>(); | ||
for (Word word : super.getWords()) | ||
verbs.add(new Country(word)); | ||
return verbs; | ||
} | ||
|
||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package nx.peter.java.dictionary; | ||
|
||
public class FullDictionary extends Dictionary.FullBuilder { | ||
public FullDictionary() { | ||
super(); | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
src/main/java/nx/peter/java/dictionary/NameDictionary.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package nx.peter.java.dictionary; | ||
|
||
import nx.peter.java.util.data.Word; | ||
import nx.peter.java.util.data.word.Name; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
public class NameDictionary extends Dictionary.Builder { | ||
public NameDictionary() { | ||
super(Type.Name); | ||
} | ||
|
||
public List<Name> getAllNames() { | ||
List<Name> names = new ArrayList<>(); | ||
for (Word word : super.getWords()) | ||
names.add(new Name(word)); | ||
return names; | ||
} | ||
|
||
} |
23 changes: 23 additions & 0 deletions
23
src/main/java/nx/peter/java/dictionary/NounDictionary.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package nx.peter.java.dictionary; | ||
|
||
|
||
import nx.peter.java.util.data.Word; | ||
import nx.peter.java.util.data.word.Noun; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
public class NounDictionary extends Dictionary.Builder { | ||
|
||
public NounDictionary(){ | ||
super(Type.Noun); | ||
} | ||
|
||
public List<Noun> getNouns() { | ||
List<Noun> nouns = new ArrayList<>(); | ||
for (Word word : super.getWords()) | ||
nouns.add(new Noun(word)); | ||
return nouns; | ||
} | ||
|
||
} |
21 changes: 21 additions & 0 deletions
21
src/main/java/nx/peter/java/dictionary/VerbDictionary.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package nx.peter.java.dictionary; | ||
|
||
import nx.peter.java.util.data.Word; | ||
import nx.peter.java.util.data.word.Verb; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
public class VerbDictionary extends Dictionary.Builder { | ||
public VerbDictionary(){ | ||
super(Type.Verb); | ||
} | ||
|
||
public List<Verb> getAllVerbs() { | ||
List<Verb> verbs = new ArrayList<>(); | ||
for (Word word : super.getWords()) | ||
verbs.add(new Verb(word)); | ||
return verbs; | ||
} | ||
|
||
} |
Oops, something went wrong.