Code example for SparseArray

Methods: remove

0
        c.modes = new ArrayList<Mode>();
		return c;
	} 
 
	public synchronized void deleteChannel(int bid) {
        channels.remove(bid);
	} 
 
	public synchronized void updateTopic(int bid, String topic_text, long topic_time, String topic_author) {
		Channel c = getChannelForBuffer(bid);
		if(c != null) {
			c.topic_text = topic_text;
			c.topic_time = topic_time;
			c.topic_author = topic_author;
		} 
	} 
	 
	public synchronized void updateMode(int bid, String mode, JsonObject ops, boolean init) {
		Channel c = getChannelForBuffer(bid);
		if(c != null) {
            c.key = false;