< prev index next >

src/java.desktop/share/classes/javax/sound/midi/Sequencer.java

Print this page
rev 57600 : 8236980: toString() cleanup in JavaSound
Reviewed-by: XXX
   1 /*
   2  * Copyright (c) 1999, 2017, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any


 703          *         synchronization mode; {@code false} otherwise
 704          */
 705         @Override
 706         public final boolean equals(Object obj) {
 707 
 708             return super.equals(obj);
 709         }
 710 
 711         /**
 712          * Returns a hash code value for this synchronization mode.
 713          *
 714          * @return a hash code value for this synchronization mode
 715          */
 716         @Override
 717         public final int hashCode() {
 718 
 719             return super.hashCode();
 720         }
 721 
 722         /**
 723          * Provides this synchronization mode's name as the string
 724          * representation of the mode.
 725          *
 726          * @return the name of this synchronization mode
 727          */
 728         @Override
 729         public final String toString() {
 730 
 731             return name;
 732         }
 733 
 734         /**
 735          * A master synchronization mode that makes the sequencer get its timing
 736          * information from its internal clock. This is not a legal slave sync
 737          * mode.
 738          */
 739         public static final SyncMode INTERNAL_CLOCK = new SyncMode("Internal Clock");
 740 
 741         /**
 742          * A master or slave synchronization mode that specifies the use of MIDI
 743          * clock messages. If this mode is used as the master sync mode, the
 744          * sequencer gets its timing information from system real-time MIDI
 745          * clock messages. This mode only applies as the master sync mode for
 746          * sequencers that are also MIDI receivers. If this is the slave sync
 747          * mode, the sequencer sends system real-time MIDI clock messages to its
 748          * receiver. MIDI clock messages are sent at a rate of 24 per quarter
 749          * note.
 750          */


   1 /*
   2  * Copyright (c) 1999, 2020, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any


 703          *         synchronization mode; {@code false} otherwise
 704          */
 705         @Override
 706         public final boolean equals(Object obj) {
 707 
 708             return super.equals(obj);
 709         }
 710 
 711         /**
 712          * Returns a hash code value for this synchronization mode.
 713          *
 714          * @return a hash code value for this synchronization mode
 715          */
 716         @Override
 717         public final int hashCode() {
 718 
 719             return super.hashCode();
 720         }
 721 
 722         /**
 723          * Returns mode's name as the string representation of the
 724          * synchronization mode.
 725          *
 726          * @return a string representation of the synchronization mode
 727          */
 728         @Override
 729         public final String toString() {

 730             return name;
 731         }
 732 
 733         /**
 734          * A master synchronization mode that makes the sequencer get its timing
 735          * information from its internal clock. This is not a legal slave sync
 736          * mode.
 737          */
 738         public static final SyncMode INTERNAL_CLOCK = new SyncMode("Internal Clock");
 739 
 740         /**
 741          * A master or slave synchronization mode that specifies the use of MIDI
 742          * clock messages. If this mode is used as the master sync mode, the
 743          * sequencer gets its timing information from system real-time MIDI
 744          * clock messages. This mode only applies as the master sync mode for
 745          * sequencers that are also MIDI receivers. If this is the slave sync
 746          * mode, the sequencer sends system real-time MIDI clock messages to its
 747          * receiver. MIDI clock messages are sent at a rate of 24 per quarter
 748          * note.
 749          */


< prev index next >