<commit_before>/**
 * Copyright (c) Codice Foundation
 *
 * This is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser
 * General Public License as published by the Free Software Foundation, either version 3 of the
 * License, or any later version.
 *
 * This program 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
 * Lesser General Public License for more details. A copy of the GNU Lesser General Public License
 * is distributed along with this program and can be found at
 * <http://www.gnu.org/licenses/lgpl.html>.
 *
 **/
package org.codice.imaging.nitf.core.image.impl;

import java.util.ArrayList;
import java.util.List;

import org.codice.imaging.nitf.core.image.ImageBand;
import org.codice.imaging.nitf.core.image.ImageBandLUT;

/**
    Image Band.
*/
class ImageBandImpl implements ImageBand {

    // An enum might have been useful, but this is extensible
    private String imageRepresentation = "";
    private String imageSubcategory = "";
    private int numEntriesLUT = 0;
    private List<ImageBandLUT> luts = new ArrayList<>();

    /**
        Default constructor.
    */
    ImageBandImpl() {
    }

    /**
        Set the image representation for the band (IREPBAND).
        <p>
        This provides information on the properties of this band.
        See MIL-STD-2500C Table A-3 for the interpretation of this field.

        @param representation the image representation for the band.
    */
    public final void setImageRepresentation(final String representation) {
        imageRepresentation = representation;
    }

    /**
     *
     * {@inheritDoc}
     */
    @Override
    public final String getImageRepresentation() {
        return imageRepresentation;
    }

    /**
        Set the image band subcategory (ISUBCAT).
        <p>
        This provides interpretation of this band within the image<commit_msg>Make ImageBandImpl public<commit_after>/**
 * Copyright (c) Codice Foundation
 *
 * This is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser
 * General Public License as published by the Free Software Foundation, either version 3 of the
 * License, or any later version.
 *
 * This program 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
 * Lesser General Public License for more details. A copy of the GNU Lesser General Public License
 * is distributed along with this program and can be found at
 * <http://www.gnu.org/licenses/lgpl.html>.
 *
 **/
package org.codice.imaging.nitf.core.image.impl;

import java.util.ArrayList;
import java.util.List;

import org.codice.imaging.nitf.core.image.ImageBand;
import org.codice.imaging.nitf.core.image.ImageBandLUT;

/**
    Image Band.
*/
public class ImageBandImpl implements ImageBand {

    // An enum might have been useful, but this is extensible
    private String imageRepresentation = "";
    private String imageSubcategory = "";
    private int numEntriesLUT = 0;
    private List<ImageBandLUT> luts = new ArrayList<>();

    /**
        Set the image representation for the band (IREPBAND).
        <p>
        This provides information on the properties of this band.
        See MIL-STD-2500C Table A-3 for the interpretation of this field.

        @param representation the image representation for the band.
    */
    public final void setImageRepresentation(final String representation) {
        imageRepresentation = representation;
    }

    /**
     *
     * {@inheritDoc}
     */
    @Override
    public final String getImageRepresentation() {
        return imageRepresentation;
    }

    /**
        Set the image band subcategory (ISUBCAT).
        <p>
        This provides interpretation of this band within the image
{'fraction_non_alphanumeric': 0.07511266900350526, 'fraction_numerical': 0.0035052578868302454, 'mean_word_length': 3.031281533804238, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '985151', 'n_tokens_mistral': 1042, 'n_tokens_neox': 1006, 'n_words': 429}