Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Example contract class for a table which contains data about the store's headphones stock
public final class StoreContract {
public static abstract class HeadphoneEntry implements BaseColumns {
public static final String TABLE_NAME = "headphones";
public static final String COLUMN_NAME = "name";
public static final String COLUMN_PRICE = "price";
public static final String COLUMN_STYLE = "style";
public static final String COLUMN_IN_STOCK = "in_stock";
public static final String COLUMN_DESCRIPTION = "description";
/**
* Possible values for the style of the headphone.
*/
public static final int STYLE_EAR_BUD = 0;
public static final int STYLE_ON_EAR = 1;
public static final int STYLE_OVER_EAR = 2;
public static final int STYLE_BONE_CONDUCTION = 3;
}
}
@sorydi3

This comment has been minimized.

Copy link

@sorydi3 sorydi3 commented Jul 19, 2017

first comentttt!!!!!!!!!

@yapldotwin

This comment has been minimized.

Copy link

@yapldotwin yapldotwin commented Jul 19, 2017

Nice

@gwieyn

This comment has been minimized.

Copy link

@gwieyn gwieyn commented Jul 20, 2017

third comentt

@Ashsandra

This comment has been minimized.

Copy link

@Ashsandra Ashsandra commented Jul 26, 2017

fourth

@CBrashear

This comment has been minimized.

Copy link

@CBrashear CBrashear commented Jul 28, 2017

uhh this is a gist I think it's just one commit needed. xD

@TobyTheCoder

This comment has been minimized.

Copy link

@TobyTheCoder TobyTheCoder commented Aug 23, 2017

where are the others?

@wilcoln

This comment has been minimized.

Copy link

@wilcoln wilcoln commented Sep 2, 2017

7th comment

@huskyui

This comment has been minimized.

Copy link

@huskyui huskyui commented Sep 16, 2017

8th comment

@sjtuyan

This comment has been minimized.

Copy link

@sjtuyan sjtuyan commented Sep 18, 2017

9th comment

@lavenderming

This comment has been minimized.

Copy link

@lavenderming lavenderming commented Sep 25, 2017

tenth

@itsaman

This comment has been minimized.

Copy link

@itsaman itsaman commented Oct 7, 2017

11th comment

@Raywilliams01

This comment has been minimized.

Copy link

@Raywilliams01 Raywilliams01 commented Oct 19, 2017

12th Comment

@piyushgupta09

This comment has been minimized.

Copy link

@piyushgupta09 piyushgupta09 commented Oct 22, 2017

wow i m 13th

@yomanspirit

This comment has been minimized.

Copy link

@yomanspirit yomanspirit commented Nov 24, 2017

14th to comment!!!

@Bniky

This comment has been minimized.

Copy link

@Bniky Bniky commented Dec 11, 2017

This is 15th

@Richtea82

This comment has been minimized.

Copy link

@Richtea82 Richtea82 commented Jan 17, 2018

2 to the power of 4

@michelthomas

This comment has been minimized.

Copy link

@michelthomas michelthomas commented Jan 18, 2018

Well she was just seventeen...

@akhilamadari

This comment has been minimized.

Copy link

@akhilamadari akhilamadari commented Jan 23, 2018

yay

@mahamatnoumai

This comment has been minimized.

Copy link

@mahamatnoumai mahamatnoumai commented Jan 25, 2018

Oops here Python(8**2).

@benbasty

This comment has been minimized.

Copy link

@benbasty benbasty commented Feb 15, 2018

yay

@nolochemical

This comment has been minimized.

Copy link

@nolochemical nolochemical commented Apr 12, 2018

BlackJack baby !!

@Steph155

This comment has been minimized.

Copy link

@Steph155 Steph155 commented May 9, 2018

BaseColumns implemented ? What is it : an interface, an abstract class, something else ?

@CherifD

This comment has been minimized.

Copy link

@CherifD CherifD commented May 13, 2018

I was wondering about the same thing. I found that it's an interface (see its code below) that has no methods. It just has two public constants: _ID and _COUNT.

==================================

  | * Copyright (C) 2006 The Android Open Source Project
  | *
  | * Licensed under the Apache License, Version 2.0 (the "License");
  | * you may not use this file except in compliance with the License.
  | * You may obtain a copy of the License at
  | *
  | * http://www.apache.org/licenses/LICENSE-2.0
  | *
  | * Unless required by applicable law or agreed to in writing, software
  | * distributed under the License is distributed on an "AS IS" BASIS,
  | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  | * See the License for the specific language governing permissions and
  | * limitations under the License.
  | */
package android.provider;

  public interface BaseColumns {
  /**
  * The unique ID for a row.
  *

Type: INTEGER (long)


  /
  public static final String _ID = "_id";
 
  /
*
  * The count of rows in a directory.
  *

Type: INTEGER


  */
  public static final String _COUNT = "_count";
  }

==================================

@Babadzhanov

This comment has been minimized.

Copy link

@Babadzhanov Babadzhanov commented May 24, 2018

24th to comment on 24th of May :)) Niceee

@yucoz

This comment has been minimized.

Copy link

@yucoz yucoz commented Jun 12, 2018

25th comment! 👍

@Joffrey2378

This comment has been minimized.

Copy link

@Joffrey2378 Joffrey2378 commented Jun 13, 2018

26th and I'm going to be 26 this month! Niiice =)

@EdgarasIljinas

This comment has been minimized.

Copy link

@EdgarasIljinas EdgarasIljinas commented Jun 14, 2018

xd...

@pranjalg2308

This comment has been minimized.

Copy link

@pranjalg2308 pranjalg2308 commented Jun 25, 2018

28th comment

@Mee4Life

This comment has been minimized.

Copy link

@Mee4Life Mee4Life commented Jul 22, 2018

29 💃

@Yosolita1978

This comment has been minimized.

Copy link

@Yosolita1978 Yosolita1978 commented Aug 3, 2018

30 is a nice number!!

@orabyelgen

This comment has been minimized.

Copy link

@orabyelgen orabyelgen commented Aug 4, 2018

31

@biddlecom

This comment has been minimized.

Copy link

@biddlecom biddlecom commented Aug 13, 2018

well, well, 32... how are you??? ;)

@jenoskon

This comment has been minimized.

Copy link

@jenoskon jenoskon commented Feb 15, 2019

33 yes yes

@casualcoder404

This comment has been minimized.

Copy link

@casualcoder404 casualcoder404 commented Mar 16, 2019

I don't see any point in posting comment rank,,, I'm 34th btw ;)

@MamboBryan

This comment has been minimized.

Copy link

@MamboBryan MamboBryan commented Oct 9, 2019

35th person

@imjustfree4ever

This comment has been minimized.

Copy link

@imjustfree4ever imjustfree4ever commented Nov 6, 2019

incase if you curious ...i'm 36th person

@shaheer9856

This comment has been minimized.

Copy link

@shaheer9856 shaheer9856 commented Nov 29, 2019

I am 37.... and I owns a McLaren ! :P

@rajhritik

This comment has been minimized.

Copy link

@rajhritik rajhritik commented Feb 15, 2020

First in 2020
My name is Mr. 38.

@TimzOwen

This comment has been minimized.

Copy link

@TimzOwen TimzOwen commented Feb 15, 2020

wouw 87

@kerolsafififawzy

This comment has been minimized.

Copy link

@kerolsafififawzy kerolsafififawzy commented Jun 13, 2020

i love udacity

@DEVBRATDUBEY

This comment has been minimized.

Copy link

@DEVBRATDUBEY DEVBRATDUBEY commented Jun 18, 2020

me 41 comment

@khushey

This comment has been minimized.

Copy link

@khushey khushey commented Jul 4, 2020

"You are my forty years old son who still lives with me."
"FORTY TWO. I AM FORTY TWO YEARS OLD."

@massil30

This comment has been minimized.

Copy link

@massil30 massil30 commented Jul 18, 2020

52 c

@SheryTariq

This comment has been minimized.

Copy link

@SheryTariq SheryTariq commented Aug 9, 2020

comment date/2

@vasut02

This comment has been minimized.

Copy link

@vasut02 vasut02 commented Nov 30, 2020

54th comment 😁😂

@rahulkr25

This comment has been minimized.

Copy link

@rahulkr25 rahulkr25 commented Mar 26, 2021

55th #first in 2021

@willeswa

This comment has been minimized.

Copy link

@willeswa willeswa commented Mar 26, 2021

56th comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment