/** * Returns whether it has the number of audio channels. * * @return whether it has the number of audio channels */ public boolean hasChannels() { return getChannels() != null; }
/** * Returns whether it has the video playback duration in milliseconds. * * @return whether it has the video playback duration in milliseconds */ public boolean hasDuration() { return getDuration() != null; }
/** * Returns whether it has the video height. * * @return whether it has the video height */ public boolean hasHeight() { return getHeight() != null; }
/** * Immutable constructor. * * @param channels number of audio channels. * @param duration video playback duration in milliseconds. * @param height video height. * @param samplingrate audio sample rate in kHz. * @param type video format type. * @param width video width. */ public GphotoOriginalVideo(Integer channels, Long duration, Integer height, Float samplingrate, String type, Integer width) { super(); setChannels(channels); setDuration(duration); setHeight(height); setSamplingrate(samplingrate); setType(type); setWidth(width); setImmutable(true); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!sameClassAs(obj)) { return false; } GphotoOriginalVideo other = (GphotoOriginalVideo) obj; return eq(channels, other.channels) && eq(duration, other.duration) && eq(height, other.height) && eq(samplingrate, other.samplingrate) && eq(type, other.type) && eq(width, other.width); }
/** * Returns whether it has the video format type. * * @return whether it has the video format type */ public boolean hasType() { return getType() != null; }
/** * Returns whether it has the video width. * * @return whether it has the video width */ public boolean hasWidth() { return getWidth() != null; }
/** * Returns whether it has the audio sample rate in kHz. * * @return whether it has the audio sample rate in kHz */ public boolean hasSamplingrate() { return getSamplingrate() != null; }
/** * Immutable constructor. * * @param channels number of audio channels. * @param duration video playback duration in milliseconds. * @param height video height. * @param samplingrate audio sample rate in kHz. * @param type video format type. * @param width video width. */ public GphotoOriginalVideo(Integer channels, Long duration, Integer height, Float samplingrate, String type, Integer width) { super(); setChannels(channels); setDuration(duration); setHeight(height); setSamplingrate(samplingrate); setType(type); setWidth(width); setImmutable(true); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!sameClassAs(obj)) { return false; } GphotoOriginalVideo other = (GphotoOriginalVideo) obj; return eq(channels, other.channels) && eq(duration, other.duration) && eq(height, other.height) && eq(samplingrate, other.samplingrate) && eq(type, other.type) && eq(width, other.width); }
/** * Returns whether it has the video format type. * * @return whether it has the video format type */ public boolean hasType() { return getType() != null; }
/** * Returns whether it has the video width. * * @return whether it has the video width */ public boolean hasWidth() { return getWidth() != null; }
/** * Returns whether it has the audio sample rate in kHz. * * @return whether it has the audio sample rate in kHz */ public boolean hasSamplingrate() { return getSamplingrate() != null; }
/** * Returns whether it has the video height. * * @return whether it has the video height */ public boolean hasHeight() { return getHeight() != null; }
/** * Returns whether it has the number of audio channels. * * @return whether it has the number of audio channels */ public boolean hasChannels() { return getChannels() != null; }
/** * Returns whether it has the video playback duration in milliseconds. * * @return whether it has the video playback duration in milliseconds */ public boolean hasDuration() { return getDuration() != null; }