Android Open Source - digital-ocean-swimmer Domain

From Project

Back to project page digital-ocean-swimmer.


The source code is released under:

MIT License

If you think the Android project digital-ocean-swimmer listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.yassirh.digitalocean.model;
/*from  ww  w . ja v a  2  s  . c  o m*/
import java.util.List;

public class Domain {
  private String name;
  private int ttl;
  private String zoneFile;
  private List<Record> records;

  public String getName() {
    return name;
  public void setName(String name) { = name;
  public int getTtl() {
    return ttl;
  public void setTtl(int ttl) {
    this.ttl = ttl;
  public String getLiveZoneFile() {
    return zoneFile;
  public void setLiveZoneFile(String liveZoneFile) {
    this.zoneFile = liveZoneFile;
  public List<Record> getRecords() {
    return records;
  public void setRecords(List<Record> records) {
    this.records = records;
  public boolean equals(Object o) {
    if (o == this)
          return true;
      if (o == null)
          return false;
      if (o instanceof Domain){
          Domain other = (Domain)o;
          return other.getName().equals(;              
          return false;

Java Source Code List