-
Notifications
You must be signed in to change notification settings - Fork 20
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
d10f523
commit 45d3437
Showing
14 changed files
with
53 additions
and
50 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
73 changes: 36 additions & 37 deletions
73
...erver/crawler/sender/orf/TopicUrlDTO.java → ...rver/crawler/sender/base/TopicUrlDTO.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 |
---|---|---|
@@ -1,37 +1,36 @@ | ||
package mServer.crawler.sender.orf; | ||
|
||
import mServer.crawler.sender.base.CrawlerUrlDTO; | ||
import java.util.Objects; | ||
|
||
public class TopicUrlDTO extends CrawlerUrlDTO { | ||
|
||
private final String topic; | ||
|
||
public TopicUrlDTO(String aTopic, String aUrl) { | ||
super(aUrl); | ||
topic = aTopic; | ||
} | ||
|
||
public String getTopic() { | ||
return topic; | ||
} | ||
|
||
@Override | ||
public boolean equals(final Object obj) { | ||
if (obj == null || getClass() != obj.getClass()) { | ||
return false; | ||
} | ||
if (super.equals(obj)) { | ||
return getTopic().equals(((TopicUrlDTO) obj).getTopic()); | ||
} | ||
|
||
return false; | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
int hash = 3; | ||
hash = 31 * hash + Objects.hashCode(this.topic) + super.hashCode(); | ||
return hash; | ||
} | ||
} | ||
package mServer.crawler.sender.base; | ||
|
||
import java.util.Objects; | ||
|
||
public class TopicUrlDTO extends CrawlerUrlDTO { | ||
|
||
private final String topic; | ||
|
||
public TopicUrlDTO(String aTopic, String aUrl) { | ||
super(aUrl); | ||
topic = aTopic; | ||
} | ||
|
||
public String getTopic() { | ||
return topic; | ||
} | ||
|
||
@Override | ||
public boolean equals(final Object obj) { | ||
if (obj == null || getClass() != obj.getClass()) { | ||
return false; | ||
} | ||
if (super.equals(obj)) { | ||
return getTopic().equals(((TopicUrlDTO) obj).getTopic()); | ||
} | ||
|
||
return false; | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
int hash = 3; | ||
hash = 31 * hash + Objects.hashCode(this.topic) + super.hashCode(); | ||
return hash; | ||
} | ||
} |
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
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
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
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
2 changes: 2 additions & 0 deletions
2
src/main/java/mServer/crawler/sender/orfon/OrfOnConstants.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
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
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
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
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
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
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
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