All Downloads are FREE. Search and download functionalities are using the official Maven repository.

uk.co.caprica.vlcjinfo.Sections Maven / Gradle / Ivy

Go to download

Minimal Java framework to extract media information using the native MediaInfo tool.

The newest version!
/*
 * This file is part of VLCJ.
 *
 * VLCJ is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * VLCJ is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with VLCJ.  If not, see .
 *
 * Copyright 2015-2021 Caprica Software Limited.
 */

package uk.co.caprica.vlcjinfo;

import java.util.ArrayList;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;

/**
 * Encapsulation of one or more sections.
 */
public final class Sections implements Iterable
{ /** * List of sections. */ private final List
sections = new ArrayList
(); /** * Create, and add, a new empty section. * * @return */ Section newSection() { Section result = new Section(); sections.add(result); return result; } /** * Get the list of sections. * * @return sections list, unmodifiable */ public List
sections() { return Collections.unmodifiableList(sections); } /** * Get the first section. * * @return section */ public Section first() { return sections.get(0); } @Override public Iterator
iterator() { return sections.iterator(); } @Override public String toString() { StringBuilder sb = new StringBuilder(100); sb.append(getClass().getSimpleName()).append('['); sb.append("sections=").append(sections).append(']'); return sb.toString(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy