/*
* Meviz - Various tools collection to work with multimedia.
- * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ * Copyright (C) 2012 -- 2018, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General Public License
public class FormatsRegistry {
- public ArrayList<AbstractConverter> encoders = new ArrayList<AbstractConverter>();
+ private final ArrayList<AbstractConverter> encoders = new ArrayList<>();
public FormatsRegistry() {
// video conversion
final String sourceFormatLowerCase = sourceFormat.toLowerCase();
final String targetFormatLowerCase = targetFormat.toLowerCase();
- final ArrayList<AbstractConverter> encoders = new ArrayList<AbstractConverter>();
+ final ArrayList<AbstractConverter> encoders = new ArrayList<>();
for (final AbstractConverter encoder : this.encoders)
if (encoder.supportsSource(sourceFormatLowerCase))
return encoders;
}
- public void registerEncoder(final AbstractConverter encoder) {
+ private void registerEncoder(final AbstractConverter encoder) {
encoders.add(encoder);
}