Ignore:
Timestamp:
2015-06-06T04:32:00+02:00 (9 years ago)
Author:
Don-vip
Message:

javadoc fixes. Removed one duplicated method in exception handling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/OsmPrimitive.java

    r8444 r8470  
    4545    private static final String SPECIAL_VALUE_LOCAL_NAME = "localname";
    4646
    47 
    4847    /**
    4948     * An object can be disabled by the filter mechanism.
     
    115114     * If <code>list</code> is null, replies an empty list.
    116115     *
    117      * @param <T>
     116     * @param <T> type of data (must be one of the {@link OsmPrimitive} types
    118117     * @param list  the original list
    119118     * @param type the type to filter for
    120119     * @return the sub-list of OSM primitives of type <code>type</code>
    121120     */
    122     public static <T extends OsmPrimitive>  List<T> getFilteredList(Collection<OsmPrimitive> list, Class<T> type) {
     121    public static <T extends OsmPrimitive> List<T> getFilteredList(Collection<OsmPrimitive> list, Class<T> type) {
    123122        if (list == null) return Collections.emptyList();
    124123        List<T> ret = new LinkedList<>();
     
    249248     *
    250249     * @param id the id
    251      * @param allowNegativeId
     250     * @param allowNegativeId {@code true} to allow negative id
    252251     * @throws IllegalArgumentException if id &lt; 0 and allowNegativeId is false
    253252     */
     
    278277     * If id is not &gt; 0 version is ignored and set to 0.
    279278     *
    280      * @param id
    281      * @param version
    282      * @param allowNegativeId
     279     * @param id the id
     280     * @param version the version (positive integer)
     281     * @param allowNegativeId {@code true} to allow negative id
    283282     * @throws IllegalArgumentException if id &lt; 0 and allowNegativeId is false
    284283     */
     
    288287        setIncomplete(id > 0 && version == 0);
    289288    }
    290 
    291289
    292290    /*----------
     
    313311    /**
    314312     * This method should never ever by called from somewhere else than Dataset.addPrimitive or removePrimitive methods
    315      * @param dataSet
     313     * @param dataSet the parent dataset
    316314     */
    317315    void setDataset(DataSet dataSet) {
     
    11751173
    11761174    /**
    1177      * Replies true if this primitive and other are equal with respect to their
    1178      * semantic attributes.
     1175     * Replies true if this primitive and other are equal with respect to their semantic attributes.
    11791176     * <ol>
    11801177     *   <li>equal id</li>
     
    11821179     *   <li>both have the same tags</li>
    11831180     * </ol>
    1184      * @param other
    1185      * @return true if this primitive and other are equal with respect to their
    1186      * semantic attributes.
     1181     * @param other other primitive to compare
     1182     * @return true if this primitive and other are equal with respect to their semantic attributes.
    11871183     */
    11881184    public boolean hasEqualSemanticAttributes(OsmPrimitive other) {
     
    11971193
    11981194    /**
    1199      * Replies true if this primitive and other are equal with respect to their
    1200      * technical attributes. The attributes:
     1195     * Replies true if this primitive and other are equal with respect to their technical attributes.
     1196     * The attributes:
    12011197     * <ol>
    12021198     *   <li>deleted</li>
     
    12091205     * have to be equal
    12101206     * @param other the other primitive
    1211      * @return true if this primitive and other are equal with respect to their
    1212      * technical attributes
     1207     * @return true if this primitive and other are equal with respect to their technical attributes
    12131208     */
    12141209    public boolean hasEqualTechnicalAttributes(OsmPrimitive other) {
    12151210        if (other == null) return false;
    12161211
    1217         return
    1218                 isDeleted() == other.isDeleted()
     1212        return  isDeleted() == other.isDeleted()
    12191213                && isModified() == other.isModified()
    12201214                && timestamp == other.timestamp
Note: See TracChangeset for help on using the changeset viewer.