src/main/java/org/tinyradius/packet/RadiusPacket.java
public void removeAttributes(int type) {
        if (type < 1 || type > 255) {
            throw new IllegalArgumentException("attribute type out of bounds");
        }

        attributes.removeIf(attribute -> attribute.getAttributeType() == type);
    }
/**
     * Removes all attributes from this packet which have got
     * the specified type.
     *
     * @param type attribute type to remove
     */
Removes all attributes from this packet which have got
the specified type.

@param type attribute type to remove
Removes all attributes from this packet which have got the specified type . @param type attribute type to remove
public void removeAttributes(int type) {
        if (type < 1 || type > 255) {
            throw new IllegalArgumentException("attribute type out of bounds");
        }
        attributes.removeIf(attribute -> attribute.getAttributeType() == type);
    }
public void removeAttributes ( int type ) { if ( type < 1 || type > 255 ) { throw new IllegalArgumentException ( "attribute type out of bounds" ) ; } attributes . removeIf ( attribute -> attribute . getAttributeType ( ) == type ) ; }
Removes all attributes from this packet which have got
 the specified type.
Removes all attributes from this packet which have got the specified type .