Skip to content

Commit

Permalink
git add --all
Browse files Browse the repository at this point in the history
  • Loading branch information
Petersburg2020 committed Dec 26, 2022
1 parent ab40b96 commit f08ac81
Show file tree
Hide file tree
Showing 18 changed files with 278,359 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/nx/peter/java/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,18 @@

import nx.peter.java.util.data.Data;
import nx.peter.java.util.data.Word;
import nx.peter.java.util.data.comparator.ComparedLetters;

public class Main {
public static void main(String[] args) {
Word word = new Word("Peter", Word.PartOfSpeech.Noun);
Data<?> data = new Word(word);

data.append("See ", 0);

ComparedLetters compared = word.getAlmostEquals(new Word(data));


println(data.append(", Esther, Blessing"));
println();

Expand Down
22 changes: 22 additions & 0 deletions src/main/java/nx/peter/java/dictionary/AdjectiveDictionary.java
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 src/main/java/nx/peter/java/dictionary/AdverbDictionary.java
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 src/main/java/nx/peter/java/dictionary/BankDictionary.java
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 src/main/java/nx/peter/java/dictionary/CountryDictionary.java
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;
}

}
7 changes: 7 additions & 0 deletions src/main/java/nx/peter/java/dictionary/FullDictionary.java
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 src/main/java/nx/peter/java/dictionary/NameDictionary.java
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 src/main/java/nx/peter/java/dictionary/NounDictionary.java
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 src/main/java/nx/peter/java/dictionary/VerbDictionary.java
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;
}

}
Loading

0 comments on commit f08ac81

Please sign in to comment.