< prev index next >

src/java.desktop/share/classes/javax/imageio/plugins/tiff/TIFFTagSet.java

Print this page

        

*** 93,103 **** * * @param tagNumber the number of the tag to be retrieved. * * @return the numbered {@code TIFFTag}, or {@code null}. */ ! public TIFFTag getTag(int tagNumber) { return allowedTagsByNumber.get(Integer.valueOf(tagNumber)); } /** * Returns the {@code TIFFTag} having the given tag name, or --- 93,103 ---- * * @param tagNumber the number of the tag to be retrieved. * * @return the numbered {@code TIFFTag}, or {@code null}. */ ! public final TIFFTag getTag(int tagNumber) { return allowedTagsByNumber.get(Integer.valueOf(tagNumber)); } /** * Returns the {@code TIFFTag} having the given tag name, or
*** 109,119 **** * @return the named {@code TIFFTag}, or {@code null}. * * @throws IllegalArgumentException if {@code tagName} is * {@code null}. */ ! public TIFFTag getTag(String tagName) { if (tagName == null) { throw new IllegalArgumentException("tagName == null!"); } return allowedTagsByName.get(tagName); } --- 109,119 ---- * @return the named {@code TIFFTag}, or {@code null}. * * @throws IllegalArgumentException if {@code tagName} is * {@code null}. */ ! public final TIFFTag getTag(String tagName) { if (tagName == null) { throw new IllegalArgumentException("tagName == null!"); } return allowedTagsByName.get(tagName); }
*** 126,136 **** * sorted into ascending order according to * {@link Integer#compareTo(Object)}.</p> * * @return All tag numbers in this set. */ ! public SortedSet<Integer> getTagNumbers() { Set<Integer> tagNumbers = allowedTagsByNumber.keySet(); SortedSet<Integer> sortedTagNumbers; if(tagNumbers instanceof SortedSet) { sortedTagNumbers = (SortedSet<Integer>)tagNumbers; } else { --- 126,136 ---- * sorted into ascending order according to * {@link Integer#compareTo(Object)}.</p> * * @return All tag numbers in this set. */ ! public final SortedSet<Integer> getTagNumbers() { Set<Integer> tagNumbers = allowedTagsByNumber.keySet(); SortedSet<Integer> sortedTagNumbers; if(tagNumbers instanceof SortedSet) { sortedTagNumbers = (SortedSet<Integer>)tagNumbers; } else {
*** 148,158 **** * sorted into ascending order according to * {@link String#compareTo(Object)}.</p> * * @return All tag names in this set. */ ! public SortedSet<String> getTagNames() { Set<String> tagNames = allowedTagsByName.keySet(); SortedSet<String> sortedTagNames; if(tagNames instanceof SortedSet) { sortedTagNames = (SortedSet<String>)tagNames; } else { --- 148,158 ---- * sorted into ascending order according to * {@link String#compareTo(Object)}.</p> * * @return All tag names in this set. */ ! public final SortedSet<String> getTagNames() { Set<String> tagNames = allowedTagsByName.keySet(); SortedSet<String> sortedTagNames; if(tagNames instanceof SortedSet) { sortedTagNames = (SortedSet<String>)tagNames; } else {
< prev index next >