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
Set<URL> mySet = new HashSet<>(); | |
mySet.add(new URL("https://my.outbrain.com")); | |
boolean r1 = mySet.contains(new URL("https://my.outbrain.com")); // Returns true | |
System.out.println("r1 = " + r1); | |
Thread.sleep(60 * 1000); // sleeping for 1 minute | |
boolean r2 = mySet.contains(new URL("https://my.outbrain.com")); // Return false | |
System.out.println("r2 = " + r2); | |
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
// http://www.nullskull.com/a/768/7zip-lzma-inmemory-compression-with-c.aspx | |
// http://www.7-zip.org/sdk.html | |
namespace SevenZip.Compression.LZMA | |
{ | |
public static class SevenZipHelper | |
{ |