public final boolean is_connected_on_layer(int p_layer){
  Collection<BrdItem> contacts_on_layer=get_all_contacts(p_layer);
  return (contacts_on_layer.size() > 0);
}

public final boolean is_connected_on_layer ( int p_layer ) { Collection < BrdItem > contacts_on_layer = get_all_contacts ( p_layer ) ; return ( contacts_on_layer . size ( ) > 0 ) ; }
checks , if this item is electrically connected to another connectable item on the input layer . returns false for items , which are not connectable .
