org.metasyntactic.language.codes
Class ISO_3901

java.lang.Object
  |
  +--org.metasyntactic.language.codes.ISO_3901

public class ISO_3901
extends java.lang.Object

International Standard Recording Code, or ISO 3901 as its formal name is, is the recording industries answer to ISBN. Every recording, re-recording, remix and remastering is assigned a unique ISRC of their own. As an example of one of ISRC's uses the ISRC code is encoded in the Q-channel on every CD, right next to the actual recording.

The ISRC itself is 12 character long and contains information about where and when the recording was made and who owns it. The only characters allowed are 0-9 and A-Z. The ISRC is constructed in the following way:

CharactersContent
2Country according to the ISO 3166 country codes.
3First owner. An alpha-numerical value unique for every record company
2Last two digits of the year of the recording.
5Designation code. A numerical value assigned by the 'first owner'.

An ISRC might look like this:

GBX459800112


Constructor Summary
ISO_3901(java.lang.String country, java.lang.String firstOwner, int year, int designation)
          Creates new ISO_3901
 
Method Summary
 boolean equals(ISO_3901 i)
           
 boolean equals(java.lang.Object o)
           
 int hashCode()
           
static void main(java.lang.String[] args)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ISO_3901

public ISO_3901(java.lang.String country,
                java.lang.String firstOwner,
                int year,
                int designation)
Creates new ISO_3901

Method Detail

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

equals

public boolean equals(ISO_3901 i)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

main

public static void main(java.lang.String[] args)