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
package com.javarush.task.task37.task3708; | |
import com.javarush.task.task37.task3708.retrievers.CachingProxyRetriever; | |
import com.javarush.task.task37.task3708.retrievers.OriginalRetriever; | |
import com.javarush.task.task37.task3708.retrievers.Retriever; | |
import com.javarush.task.task37.task3708.storage.FarAwayStorage; | |
import com.javarush.task.task37.task3708.storage.Storage; | |
/* | |
Кеширующий Proxy |
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
package com.javarush.task.task37.task3704; | |
import java.util.HashMap; | |
import java.util.Map; | |
import java.util.TreeMap; | |
/* | |
Фикс бага | |
*/ | |
public class Solution |
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
package com.javarush.task.task37.task3703; | |
import java.util.concurrent.ConcurrentSkipListMap; | |
/* | |
Найти класс по описанию | |
*/ | |
public class Solution | |
{ | |
public static void main(String[] args) |
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
package com.javarush.task.task37.task3701; | |
import java.util.ArrayList; | |
import java.util.Iterator; | |
import java.util.function.Consumer; | |
/* | |
Круговой итератор | |
*/ | |
public class Solution<T> extends ArrayList<T> |
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
package com.javarush.task.task36.task3610; | |
import java.io.Serializable; | |
import java.util.*; | |
public class MyMultiMap<K, V> extends HashMap<K, V> implements Cloneable, Serializable | |
{ | |
static final long serialVersionUID = 123456789L; | |
private HashMap<K, List<V>> map; | |
private int repeatCount; |
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
package com.javarush.task.task36.task3613; | |
import java.util.concurrent.SynchronousQueue; | |
/* | |
Найти класс по описанию | |
*/ | |
public class Solution |
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
package com.javarush.task.task36.task3612; | |
import java.util.Date; | |
import java.util.HashSet; | |
import java.util.Set; | |
/* | |
Почему сет не содержит элемент? | |
*/ |
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
package com.javarush.task.task36.task3607; | |
import java.util.concurrent.DelayQueue; | |
/* | |
Найти класс по описанию | |
*/ | |
public class Solution { | |
public static void main(String[] args) { |
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
package com.javarush.task.task36.task3604; | |
public class RedBlackTree | |
{ | |
private static final Node EMPTY = new Node ( 0 ); | |
static | |
{ | |
EMPTY.left = EMPTY; | |
EMPTY.right = EMPTY; |