< prev index next >
src/java.desktop/share/classes/javax/sound/sampled/AudioFileFormat.java
Print this page
@@ -98,26 +98,26 @@
public class AudioFileFormat {
/**
* File type.
*/
- private Type type;
+ private final Type type;
/**
* File length in bytes.
*/
- private int byteLength;
+ private final int byteLength;
/**
* Format of the audio data contained in the file.
*/
- private AudioFormat format;
+ private final AudioFormat format;
/**
* Audio data length in sample frames.
*/
- private int frameLength;
+ private final int frameLength;
/**
* The set of properties.
*/
private HashMap<String, Object> properties;
@@ -174,11 +174,11 @@
* @since 1.5
*/
public AudioFileFormat(Type type, AudioFormat format,
int frameLength, Map<String, Object> properties) {
this(type,AudioSystem.NOT_SPECIFIED,format,frameLength);
- this.properties = new HashMap<String, Object>(properties);
+ this.properties = new HashMap<>(properties);
}
/**
* Obtains the audio file type, such as {@code WAVE} or {@code AU}.
*
< prev index next >