NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

public class CallZone
{
private String name;

private static Set<CallZone> allZones = new HashSet<CallZone>();

/**
* The call zone for Canada.
*/
public static final CallZone CANADA = new CallZone("CANADA");

/**
* The call zone for the United States.
*/
public static final CallZone USA = new CallZone("USA");

/**
* The call zone for Europe.
*/
public static final CallZone EUROPE = new CallZone("EUROPE");

/**
* The call zone for Asia.
*/
public static final CallZone ASIA = new CallZone("ASIA");

/**
* The call zone for Australia and New Zeland.
*/
public static final CallZone ANZ = new CallZone("ANZ");

/**
* The call zone for Latin America.
*/
public static final CallZone LATINAM = new CallZone("LATINAM");

/**
* The call zone for Africa.
*/
public static final CallZone AFRICA = new CallZone("AFRICA");

private CallZone(String name)
{
this.name = name;
CallZone.allZones.add(this);
}

/**
* Produces the set of all valid call zones.
*
* @return the set of all valid call zones.
*/
public static Set<CallZone> getAllZones()
{
return new HashSet<CallZone>(CallZone.allZones);
}

/**
* Creates a string representation of the object; the call zone's name is returned.
*
* @return the string representation of the object.
*/
@Override
public String toString()
{
return this.name;
}

/**
* Creates a hash code for the object, which is the hash code of the string
* that is the call zone's name.
*
* @return the object's hash code.
*/
@Override
public int hashCode()
{
return this.toString().hashCode();
}

/**
* Indicates whether some other object is "equal to" this one.
* The result is true if and only if the argument is not null, is a call zone,
* and both objects have the same name.
*
* @param obj The object to compare with.
* @return true if the call zones' names are equal; false otherwise.
*/
@Override
public boolean equals(Object obj)
{
boolean eq = false;
if(obj != null && this.getClass() == obj.getClass())
{
CallZone other = (CallZone) obj;
eq = this.toString().equals(other.toString());
}
return eq;
}
}
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.