src/main/java/org/tinyradius/dictionary/MemoryDictionary.java
@Override
    public void addVendor(int vendorId, String vendorName) {
        if (vendorId < 0) {
            throw new IllegalArgumentException("vendor ID must be positive");
        }
        if (getVendorName(vendorId) != null) {
            throw new IllegalArgumentException("duplicate vendor code");
        }
        if (vendorName == null || vendorName.length() == 0) {
            throw new IllegalArgumentException("vendor name empty");
        }
        vendorsByCode.put(vendorId, vendorName);
    }
/**
     * Adds the given vendor to the cache.
     *
     * @param vendorId   vendor ID
     * @param vendorName name of the vendor
     * @throws IllegalArgumentException empty vendor name, invalid vendor ID
     */
Adds the given vendor to the cache.

@param vendorId   vendor ID
@param vendorName name of the vendor
@throws IllegalArgumentException empty vendor name, invalid vendor ID
Adds the given vendor to the cache . @param vendorId vendor ID @param vendorName name of the vendor @throws IllegalArgumentException empty vendor name invalid vendor ID
@Override
    public void addVendor(int vendorId, String vendorName) {
        if (vendorId < 0) {
            throw new IllegalArgumentException("vendor ID must be positive");
        }
        if (getVendorName(vendorId) != null) {
            throw new IllegalArgumentException("duplicate vendor code");
        }
        if (vendorName == null || vendorName.length() == 0) {
            throw new IllegalArgumentException("vendor name empty");
        }
        vendorsByCode.put(vendorId, vendorName);
    }
@ Override public void addVendor ( int vendorId , String vendorName ) { if ( vendorId < 0 ) { throw new IllegalArgumentException ( "vendor ID must be positive" ) ; } if ( getVendorName ( vendorId ) != null ) { throw new IllegalArgumentException ( "duplicate vendor code" ) ; } if ( vendorName == null || vendorName . length ( ) == 0 ) { throw new IllegalArgumentException ( "vendor name empty" ) ; } vendorsByCode . put ( vendorId , vendorName ) ; }
Adds the given vendor to the cache.
Adds the given vendor to the cache .