-
-
Save udacityandroid/ae83549fb0599bbdbb25ac179415b83c to your computer and use it in GitHub Desktop.
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; | |
} | |
} |
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";
}
==================================
24th to comment on 24th of May :)) Niceee
25th comment! 👍
26th and I'm going to be 26 this month! Niiice =)
xd...
28th comment
29 💃
30 is a nice number!!
31
well, well, 32... how are you??? ;)
33 yes yes
I don't see any point in posting comment rank,,, I'm 34th btw ;)
35th person
incase if you curious ...i'm 36th person
I am 37.... and I owns a McLaren ! :P
First in 2020
My name is Mr. 38.
wouw 87
i love udacity
me 41 comment
"You are my forty years old son who still lives with me."
"FORTY TWO. I AM FORTY TWO YEARS OLD."
52 c
comment date/2
54th comment 😁😂
55th #first in 2021
56th comment
57 ☜(゚ヮ゚☜)
58th comment
59
BaseColumns implemented ? What is it : an interface, an abstract class, something else ?