Android Open Source - notes Label

From Project

Back to project page notes.


The source code is released under:

DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE Version 2, December 2004 Copyright (C) 2004 Sam Hocevar <> Everyone is permitted to copy and distribute verbatim or...

If you think the Android project notes listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.iliakplv.notes.notes;
/*from w ww .j a v a 2s. co  m*/
import com.iliakplv.notes.utils.StringUtils;


public class Label {

  private Serializable id = NotesUtils.DEFAULT_ID;

  private String name;
  private int color;

  public Label(String name, int color) {

  public String getName() {
    return name;

  public void setName(String name) { = StringUtils.getNotNull(name);

  public int getColor() {
    return color;

  public void setColor(int color) {
    this.color = color;

  public Serializable getId() {
    return id;

  public void setId(Serializable id) { = NotesUtils.getValidNoteId(id);

Java Source Code List